From 6f553e5c9440d5a113014ed9bfe880bd74dcb05a Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 15 Feb 2020 18:40:14 +0100 Subject: [PATCH] Fix PKC background sync not working in some cases --- resources/lib/library_sync/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/library_sync/websocket.py b/resources/lib/library_sync/websocket.py index f68233c1..a899362d 100644 --- a/resources/lib/library_sync/websocket.py +++ b/resources/lib/library_sync/websocket.py @@ -125,7 +125,7 @@ def process_new_item_message(message): with itemtypes.ITEMTYPE_FROM_PLEXTYPE[plex_type](timing.unix_timestamp()) as typus: typus.add_update(xml[0], section_name=xml.get('librarySectionTitle'), - section_id=xml.get('librarySectionID')) + section_id=utils.cast(int, xml.get('librarySectionID'))) cache_artwork(message['plex_id'], plex_type) return True, plex_type in v.PLEX_VIDEOTYPES, plex_type in v.PLEX_AUDIOTYPES