mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Fix schedulers not starting with library update
This commit is contained in:
parent
01fe7bf612
commit
afc265a188
2 changed files with 4 additions and 4 deletions
|
@ -282,7 +282,7 @@ def initialize_scheduler():
|
||||||
else:
|
else:
|
||||||
seconds = 0
|
seconds = 0
|
||||||
|
|
||||||
if CONFIG.PMS_IP and CONFIG.PMS_TOKEN and CONFIG.UPDATE_SECTION_IDS != -1:
|
if CONFIG.PMS_IP and CONFIG.PMS_TOKEN:
|
||||||
schedule_job(plextv.get_real_pms_url, 'Refresh Plex Server URLs',
|
schedule_job(plextv.get_real_pms_url, 'Refresh Plex Server URLs',
|
||||||
hours=12, minutes=0, seconds=0)
|
hours=12, minutes=0, seconds=0)
|
||||||
schedule_job(pmsconnect.get_server_friendly_name, 'Refresh Plex Server Name',
|
schedule_job(pmsconnect.get_server_friendly_name, 'Refresh Plex Server Name',
|
||||||
|
|
|
@ -42,7 +42,7 @@ def update_section_ids():
|
||||||
logger.warn(u"PlexPy Libraries :: Unable to execute database query for update_section_ids: %s." % e)
|
logger.warn(u"PlexPy Libraries :: Unable to execute database query for update_section_ids: %s." % e)
|
||||||
|
|
||||||
logger.warn(u"PlexPy Libraries :: Unable to update section_id's in database.")
|
logger.warn(u"PlexPy Libraries :: Unable to update section_id's in database.")
|
||||||
plexpy.CONFIG.__setattr__('UPDATE_SECTION_IDS', 1)
|
plexpy.CONFIG.UPDATE_SECTION_IDS = 1
|
||||||
plexpy.CONFIG.write()
|
plexpy.CONFIG.write()
|
||||||
|
|
||||||
#logger.debug(u"PlexPy Libraries :: Re-enabling monitoring.")
|
#logger.debug(u"PlexPy Libraries :: Re-enabling monitoring.")
|
||||||
|
@ -50,7 +50,7 @@ def update_section_ids():
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if not history_results:
|
if not history_results:
|
||||||
plexpy.CONFIG.__setattr__('UPDATE_SECTION_IDS', 0)
|
plexpy.CONFIG.UPDATE_SECTION_IDS = 0
|
||||||
plexpy.CONFIG.write()
|
plexpy.CONFIG.write()
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ def update_section_ids():
|
||||||
else:
|
else:
|
||||||
logger.info(u"PlexPy Libraries :: Updated all section_id's in database.")
|
logger.info(u"PlexPy Libraries :: Updated all section_id's in database.")
|
||||||
|
|
||||||
plexpy.CONFIG.__setattr__('UPDATE_SECTION_IDS', 0)
|
plexpy.CONFIG.UPDATE_SECTION_IDS = 0
|
||||||
plexpy.CONFIG.write()
|
plexpy.CONFIG.write()
|
||||||
|
|
||||||
#logger.debug(u"PlexPy Libraries :: Re-enabling monitoring.")
|
#logger.debug(u"PlexPy Libraries :: Re-enabling monitoring.")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue