Improve startup speed by refreshing on a separate thread

This commit is contained in:
JonnyWong16 2020-10-25 13:07:42 -07:00
parent 8157ee7811
commit 558023e18e
No known key found for this signature in database
GPG key ID: B1F1F9807184697A
5 changed files with 122 additions and 77 deletions

View file

@ -122,7 +122,8 @@ def add_live_tv_library(refresh=False):
if result and not refresh or not result and refresh:
return
logger.info("Tautulli Libraries :: Adding Live TV library to the database.")
if not refresh:
logger.info("Tautulli Libraries :: Adding Live TV library to the database.")
section_keys = {'server_id': plexpy.CONFIG.PMS_IDENTIFIER,
'section_id': common.LIVE_TV_SECTION_ID}