Fix time sync not downloading items

This commit is contained in:
croneter 2018-10-25 13:02:36 +02:00
parent a603fbadca
commit 91533aa89f

View file

@ -47,7 +47,9 @@ def sync_pms_time():
continue continue
library_id = section.attrib['key'] library_id = section.attrib['key']
try: 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: for item in iterator:
if item.get('viewCount'): if item.get('viewCount'):
# Don't want to mess with items that have playcount>0 # Don't want to mess with items that have playcount>0