diff --git a/resources/lib/library_sync/time.py b/resources/lib/library_sync/time.py index c42965b9..dd1442a3 100644 --- a/resources/lib/library_sync/time.py +++ b/resources/lib/library_sync/time.py @@ -47,7 +47,9 @@ def sync_pms_time(): continue library_id = section.attrib['key'] try: - iterator = PF.SectionItems(library_id, {'type': plex_type}) + iterator = PF.SectionItems( + library_id, + {'type': v.PLEX_TYPE_NUMBER_FROM_PLEX_TYPE[plex_type]}) for item in iterator: if item.get('viewCount'): # Don't want to mess with items that have playcount>0