Hi all,
i make same script for custom update for S905/S905X
set on Settings/LibreElec/System:
source:
PHP
<?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