Thanks for your work, I have quickly tested the script on RPi 4B and it works in general, but there are some disadvantages I would like to mention:
- when the download is aborted for some reason, deletion of partially downloaded image is a bad behaviour from my point of view, a better choice should be to use the wget -c so the running script again could continue downloading the rest of the file.
- the script does not detect the upgrade image (but as a downgrade instead) when there are several images released the same day, like yesterday. FYI there's a folder content & debug output including index.html below:
LibreELEC Nightly Builds: /11.0/RPi/
Type to search...
File Name ↓ File Size ↓ Date ↓
Parent directory/
- -
LibreELEC-RPi2.arm-11.0-nightly-20220618-b78941a.img.gz
120.9 MiB 2022-Jun-18 09:29
LibreELEC-RPi2.arm-11.0-nightly-20220618-fa73826.img.gz
120.9 MiB 2022-Jun-18 23:19
LibreELEC-RPi4.arm-11.0-nightly-20220618-b78941a.img.gz
122.8 MiB 2022-Jun-18 10:57
LibreELEC-RPi4.arm-11.0-nightly-20220618-fa73826.img.gz
122.8 MiB 2022-Jun-18 23:56
# ./get_nightly.sh
+++ Debug Info +++
your Platform is: RPi4.arm
build date is : 20220618
Git Tag is: b78941a
+++ Debug Info +++
using download URL: https://test.libreelec.tv/11.0/RPi/
+++ Debug Info +++
in function check_available_Images
+++ Debug Info +++
wget return code was: 0
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="IE=edge">
<title>LibreELEC Nightly Builds</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/autoindex/styles.css">
<!--<script src="/autoindex/jquery-3.6.0.min.js"></script>-->
</head>
<body>
<!--
header.html
© 2015-18, Lilian Besson (Naereen) and contributors,
open-sourced under the MIT License, https://lbesson.mit-license.org/
hosted on GitHub, https://GitHub.com/Naereen/Nginx-Fancyindex-Theme
-->
<div class="nav_bar_out">
<div class="nav_bar">
<a class="menu" href="https://forum.libreelec.tv/">Forum</a>
<a class="menu" href="https://libreelec.tv/">Blog</a>
<a class="menu" href="https://libreelec.tv/about/">About</a>
<a class="menu" href="https://libreelec.tv/downloads/">Stable-Downloads</a>
<a class="menu" href="https://libreelec.wiki/">Wiki</a>
</div>
</div>
<div class="out_logo">
<div class="logo">
<a href="https://test.libreelec.tv/"><img src="/autoindex/le-logo.png"style="width: 278px;height: 80px"></a>
</div>
</div>
<div class="wrapper">
<h4><div align="justify">This folder contains images and add-ons built from development snapshots and pull requests.
You should expect to find bugs and other random problems.
Feedback is welcome <a href="https://forum.libreelec.tv">via the forum</a>, but please do not expect support.
Images are built nightly if there are changes to build. No new commits = no new images!
</div></h4>
<div>
<h1>LibreELEC Nightly Builds:
/11.0/RPi/</h1>
<table id="list"><thead><tr><th style="width:55%"><a href="?C=N&O=A">File Name</a> <a href="?C=N&O=D"> &WCF_AMPERSAND↓ </a></th><th style="width:20%"><a href="?C=S&O=A">File Size</a> <a href="?C=S&O=D"> &WCF_AMPERSAND↓ </a></th><th style="width:25%"><a href="?C=M&O=A">Date</a> <a href="?C=M&O=D"> &WCF_AMPERSAND↓ </a></th></tr></thead>
<tbody><tr><td><a href="../">Parent directory/</a></td><td>-</td><td>-</td></tr><tr><td><a href="LibreELEC-RPi2.arm-11.0-nightly-20220618-b78941a.img.gz" title="LibreELEC-RPi2.arm-11.0-nightly-20220618-b78941a.img.gz">LibreELEC-RPi2.arm-11.0-nightly-20220618-b78941a.img.gz</a></td><td>120.9 MiB</td><td>2022-Jun-18 09:29</td></tr>
<tr><td><a href="LibreELEC-RPi2.arm-11.0-nightly-20220618-fa73826.img.gz" title="LibreELEC-RPi2.arm-11.0-nightly-20220618-fa73826.img.gz">LibreELEC-RPi2.arm-11.0-nightly-20220618-fa73826.img.gz</a></td><td>120.9 MiB</td><td>2022-Jun-18 23:19</td></tr>
<tr><td><a href="LibreELEC-RPi4.arm-11.0-nightly-20220618-b78941a.img.gz" title="LibreELEC-RPi4.arm-11.0-nightly-20220618-b78941a.img.gz">LibreELEC-RPi4.arm-11.0-nightly-20220618-b78941a.img.gz</a></td><td>122.8 MiB</td><td>2022-Jun-18 10:57</td></tr>
<tr><td><a href="LibreELEC-RPi4.arm-11.0-nightly-20220618-fa73826.img.gz" title="LibreELEC-RPi4.arm-11.0-nightly-20220618-fa73826.img.gz">LibreELEC-RPi4.arm-11.0-nightly-20220618-fa73826.img.gz</a></td><td>122.8 MiB</td><td>2022-Jun-18 23:56</td></tr>
</tbody></table> <div id="raw_include_README_md"></div>
<script src="/autoindex/xregexp-5.1.0.js"></script>
<script src="/autoindex/addNginxFancyIndexForm.js"></script>
</body>
</html>
<!--
footer.html
© 2015-18, Lilian Besson (Naereen) and contributors,
open-sourced under the MIT License, https://lbesson.mit-license.org/
hosted on GitHub, https://GitHub.com/Naereen/Nginx-Fancyindex-Theme
-->
previous nightly on the Download Server is: LibreELEC-RPi4.arm-11.0-nightly-20220618-fa73826.img.gz
it's compressed download size is: 122 MiB
your Platform is: RPi4.arm
running nightly is from: 20220618
and has Git Tag: b78941a
+++ nightlies currently available on the download server +++
* for an update: *** No updates ***
* for an downgrade: LibreELEC-RPi4.arm-11.0-nightly-20220618-fa73826.img.gz
What do you want me to do ?
u) update your nightly to the lastest.)
d) downgrade to the previous nightly
q) quit (auto. selected in 15 seconds !!!)
Enter selection [u, d, q] > u
update was selected
+++ Debug Info +++
in function check_disk_space
Selected Image wasn't available !
Aborting !!!
+++ in clean up +++