mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-12 16:22:57 -07:00
Only notify Tautulli updates when checked as a scheduled task (Fixes Tautulli/Tautulli-Issues#46)
This commit is contained in:
parent
5e000162c6
commit
5f7991665c
3 changed files with 10 additions and 7 deletions
|
@ -131,7 +131,7 @@ def getVersion():
|
|||
return None, 'origin', common.BRANCH
|
||||
|
||||
|
||||
def checkGithub(auto_update=False):
|
||||
def check_github(auto_update=False, notify=False):
|
||||
plexpy.COMMITS_BEHIND = 0
|
||||
|
||||
# Get the latest version available from github
|
||||
|
@ -198,8 +198,11 @@ def checkGithub(auto_update=False):
|
|||
|
||||
plexpy.LATEST_RELEASE = release['tag_name']
|
||||
|
||||
plexpy.NOTIFY_QUEUE.put({'notify_action': 'on_plexpyupdate', 'plexpy_download_info': release,
|
||||
'plexpy_update_commit': plexpy.LATEST_VERSION, 'plexpy_update_behind': plexpy.COMMITS_BEHIND})
|
||||
if notify:
|
||||
plexpy.NOTIFY_QUEUE.put({'notify_action': 'on_plexpyupdate',
|
||||
'plexpy_download_info': release,
|
||||
'plexpy_update_commit': plexpy.LATEST_VERSION,
|
||||
'plexpy_update_behind': plexpy.COMMITS_BEHIND})
|
||||
|
||||
if auto_update:
|
||||
logger.info('Running automatic update.')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue