Change home cards config to list type

This commit is contained in:
Jonathan Wong 2015-12-06 23:38:41 -08:00
commit 8ba68dcfcf
9 changed files with 81 additions and 37 deletions

View file

@ -68,6 +68,12 @@ def refresh_libraries():
monitor_db.upsert('library_sections', key_dict=section_keys, value_dict=section_values)
cards.append(section['key'])
if populate_cards:
plexpy.CONFIG.__setattr__('HOME_LIBRARY_CARDS', cards)
plexpy.CONFIG.write()
logger.info("Libraries list refreshed.")
else:
logger.warn("Unable to refresh libraries list.")