mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-13 01:56:58 -07:00
Beta/nightly update check to include non-beta releases
This commit is contained in:
parent
8acdb5af83
commit
feb762ce8b
1 changed files with 2 additions and 2 deletions
|
@ -190,9 +190,9 @@ def checkGithub(auto_update=False):
|
||||||
if plexpy.CONFIG.GIT_BRANCH == 'master':
|
if plexpy.CONFIG.GIT_BRANCH == 'master':
|
||||||
release = next((r for r in releases if not r['prerelease']), releases[0])
|
release = next((r for r in releases if not r['prerelease']), releases[0])
|
||||||
elif plexpy.CONFIG.GIT_BRANCH == 'beta':
|
elif plexpy.CONFIG.GIT_BRANCH == 'beta':
|
||||||
release = next((r for r in releases if r['prerelease'] and '-beta' in r['tag_name']), releases[0])
|
release = next((r for r in releases if not r['tag_name'].endswith('-nightly')), releases[0])
|
||||||
elif plexpy.CONFIG.GIT_BRANCH == 'nightly':
|
elif plexpy.CONFIG.GIT_BRANCH == 'nightly':
|
||||||
release = next((r for r in releases if r['prerelease'] and '-nightly' in r['tag_name']), releases[0])
|
release = next((r for r in releases), releases[0])
|
||||||
else:
|
else:
|
||||||
release = releases[0]
|
release = releases[0]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue