Merge pull request #278 from blacktwin/sync_watched_update

Update to search for watched items
This commit is contained in:
blacktwin 2021-01-08 08:12:28 -05:00 committed by GitHub
commit 9af6626b6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -501,7 +501,7 @@ if __name__ == '__main__':
# Check library for watched items
sectionFrom = watchedFrom.library.section(_library.title)
if _library.type == 'show':
watched_lst = sectionFrom.search(libtype='episode', unwatched=False)
watched_lst = sectionFrom.search(libtype='episode', **{'show.unwatchedLeaves': False})
else:
watched_lst = sectionFrom.search(unwatched=False)