So, the link on first page change?
Not need old is redirect
So, the link on first page change?
Not need old is redirect
one url for all arch is:
source updateAll.php:
<?
$all=[
["name"=>"Amlogic S905","url"=>"s905","arch"=>"S905.arm"],
["name"=>"Amlogic S805","url"=>"s805","arch"=>"S805.arm"],
["name"=>"Amlogic S912","url"=>"s912","arch"=>"S912.arm"],
];
//print_r($files);
?>{
"LibreELEC-8.0": {
"url": "http://kszaq.libreelec.tv/",
"prettyname_regex": "^[0-9a-z]*\\/[0-9a-z.]*\\/LibreELEC-.*-([0-9]+\\.[0-9]+\\.[^.]*)",
"project": {
<?
foreach($all as $one){
$c=file_get_contents ("http://kszaq.libreelec.tv/".$one["url"]."/");
$versions=;
preg_match_all("/[0-9]+\.+[0-9]+\.+[0-9][a-z]-?[a-z]*/", $c, $versions);
$last=end($versions[0]);
$c=file_get_contents ("http://kszaq.libreelec.tv/".$one["url"]."/".$last."/");
preg_match_all("/LibreELEC[-_.0-9a-zA-Z]*\"/", $c, $files);
$files=$files[0];
if($one!=$all[0])echo ",";
?>
"<?=$one["arch"]?>": {
"displayName": "<?=$one["name"]?>",
"releases": {
<?for ($i = 0; $i < count($files)/2; $i++) {?>
"<?=$i?>": {
"image": {
"sha256": "9a47f4c49f558ef24b4f49262b4e3565011c85a8b9a67aa583fcbc4f4e87e35b",
"name": "<?=$one["url"]?>/<?=$last?>/<?=$files[$i*2]?>,
"size": "122548364"
},
"file": {
"sha256": "964e0928dca8660dfe35e6642b4cb7b94aadc41807106fbea4da6d1ad7a91a08",
"name": "<?=$one["url"]?>/<?=$last?>/<?=$files[$i*2+1]?>,
"size": "135639040"
}
}<?if ($i+1!=count($files)/2) echo ",";?>
<?}?>
}
}
<?}?>
}
}
}
[/php]
.htaccess
[code]
RewriteEngine on
RewriteRule releases.json /kodi/updateAll.php [NC,L]
Display More
Hello,This script include device tree?
https://qwerin.cz/kodi/s905.php
3 device tree is supported maybe today i make one script for all
----------------------
sorry u meen this ? Index of /s905/device_trees/ ?? this is need only for install for updane no
qwerin Really nice! I'll check it out later and maybe implement it for all my builds.
no problem i implement for all but i not heve other for test
next better update process is on service.libreelec.settings/system.py at libreelec-8.0 · LibreELEC/service.libreelec.settings · GitHub
here is semple server site: updates.zip
and need change this: 'UPDATE_REQUEST_URL': 'https://update.libreelec.tv/updates.php', to your file server...
[hr]
qwerin Really nice! I'll check it out later and maybe implement it for all my builds.
Hi all,
i make same script for custom update for S905/S905X
set on Settings/LibreElec/System:
source:
<?php < ? $c = file_get_contents("http://kszaq.libreelec.tv/s905/");
$versions =;
preg_match_all("/[0-9]+\\.+[0-9]+\\.+[0-9][a-z]/", $c, $versions);
$last = end($versions[0]);
$c = file_get_contents("http://kszaq.libreelec.tv/s905/" . $last . "/");
preg_match_all("/LibreELEC[-_.0-9a-zA-Z]*\"/", $c, $files);
$files = $files[0];
// print_r($files);
?>{
"LibreELEC-8.0": {
"url": "http://kszaq.libreelec.tv/s905/",
"prettyname_regex": "^[0-9a-z.]*\\/LibreELEC-.*-([0-9]+\\.[0-9]+\\.[^.]*)",
"project": {
"S905.arm": {
"displayName": "Amlogic S905",
"releases": {
<?php
for ($i = 0; $i < count($files) / 2; $i++)
{ ?>
"<?php echo $i
?>": {
"image": {
"sha256": "9a47f4c49f558ef24b4f49262b4e3565011c85a8b9a67aa583fcbc4f4e87e35b",
"name": "<?php echo $last
?>/<?php echo $files[$i * 2] ?>",
"size": "122548364"
},
"file": {
"sha256": "964e0928dca8660dfe35e6642b4cb7b94aadc41807106fbea4da6d1ad7a91a08",
"name": "<?php echo $last ?>/<?php echo $files[$i * 2 + 1] ?>",
"size": "135639040"
}
}<?php
if ($i + 1 != count($files) / 2) echo ","; ?>
<?php
} ?>
}
}
}
}
}
Display More