This commit is contained in:
Blacktwin 2019-06-16 02:52:49 -04:00
parent 0689a760d8
commit 672a2abaf4

View File

@ -275,11 +275,10 @@ if __name__ == '__main__':
token = user_account.get_token(plex_server.server.machineIdentifier)
user_server = Plex(url=PLEX_URL, token=token)
section = user_server.server.library.section(library)
section_watched_lst = []
if section.type == 'movie':
section_watched_lst += section.search(unwatched=False)
section_watched_lst = section.search(unwatched=False)
elif section.type == 'show':
section_watched_lst += section.search(libtype='episode', unwatched=False)
section_watched_lst = section.search(libtype='episode', unwatched=False)
else:
continue
section_watched_total = len(section_watched_lst)