Skip to content

Conversation

@antonlacon
Copy link
Contributor

This changes the automatic check for updates to use /usr/bin/update-system if it's present. If not, then it falls back to asking the server for update information (current practice). update-system's output to include the checksum of the file intended to be downloaded. The addon doesn't do anything with it yet.

The other minor bits are some cleanups inside the function.

Needs LibreELEC/LibreELEC.tv#7540 to see new behaviour.

Replaces #276.

@CvH CvH added the LE 12.0 label May 19, 2023
@lrusak
Copy link
Member

lrusak commented May 24, 2023

I would rather not call an external script. It should be integrated as a python import instead. Then if you want the cli script you can interface with that also.

@antonlacon antonlacon marked this pull request as draft May 25, 2023 21:59
@antonlacon
Copy link
Contributor Author

antonlacon commented Oct 3, 2023

This is based on #301, #303, and #307. The relevant commits are 93d4ef1 and 747036a. Draft until other PRs merged.

@antonlacon antonlacon force-pushed the auto-update branch 2 times, most recently from 2df6360 to 1536689 Compare November 13, 2023 20:29
@antonlacon antonlacon force-pushed the auto-update branch 2 times, most recently from 5cd7a32 to c0bfe20 Compare August 31, 2025 06:09
@CvH CvH added LE 13.0 and removed LE 12.0 labels Aug 31, 2025
General review and cleanup of issues pointed out by pylint:

unexpected indent
could use f-strings
not inializing variables in init
redefining builtins
too broad exceptions
unneeded elses after returns
unneeded parantheses
== instead of is in evaluating True/False
unused function parameters
unused imports

Signed-off-by: Ian Leonard <[email protected]>
Addon will require Python >=3.9

Signed-off-by: Ian Leonard <[email protected]>
The release channel entry serves as a releases.json selector.

stable: use releases.libreelec.tv/releases.json (stable builds)
testing: use test.libreelec.tv/releases.json (nightly builds)
custom: use a user designated URL for releases.json

The 'custom' setting replaces the Show Custom Channels toggle.

Adds a set_release_channel() function to refresh available build channels.

Signed-off-by: Ian Leonard <[email protected]>
Signed-off-by: Ian Leonard <[email protected]>
Signed-off-by: Ian Leonard <[email protected]>
Import update_lib.py and use it for the system's automated update
check. If there is no such script, it uses the server side check.

Add an on/off toggle in the GUI with the default set to off.

Signed-off-by: Ian Leonard <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants