From c80682787bed1ae0dde72bec6a47b3aaea119465 Mon Sep 17 00:00:00 2001 From: Blacktwin Date: Tue, 25 Jun 2019 14:52:36 -0400 Subject: [PATCH] clean up --- utility/sync_watch_status.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/utility/sync_watch_status.py b/utility/sync_watch_status.py index 9b7ce4d..41a7382 100644 --- a/utility/sync_watch_status.py +++ b/utility/sync_watch_status.py @@ -499,13 +499,9 @@ if __name__ == '__main__': # Check library for watched items sectionFrom = watchedFrom.library.section(_library.title) if _library.type == 'show': - for show in sectionFrom.all(): - for episode in show.episodes(): - if episode.isWatched: - watched_lst.append(episode) + watched_lst = sectionFrom.search(libtype='episode', unwatched=False) else: - for item in sectionFrom.search(unwatched=False): - watched_lst.append(item) + watched_lst = sectionFrom.search(unwatched=False) for user in plexTo: username, server = user