Fix libraries and users refresh

This commit is contained in:
JonnyWong16 2016-01-27 23:32:01 -08:00
parent a9ce92decb
commit a8aae9f1f5
6 changed files with 28 additions and 17 deletions

View file

@ -176,7 +176,7 @@ def initialize(config_file):
plextv.refresh_users()
# Refresh the libraries list on startup
if CONFIG.PMS_TOKEN and CONFIG.REFRESH_LIBRARIES_ON_STARTUP:
if CONFIG.PMS_IP and CONFIG.PMS_TOKEN and CONFIG.REFRESH_LIBRARIES_ON_STARTUP:
pmsconnect.refresh_libraries()
# Store the original umask