clean up
This commit is contained in:
parent
740dc498e2
commit
c80682787b
@ -499,13 +499,9 @@ if __name__ == '__main__':
|
|||||||
# Check library for watched items
|
# Check library for watched items
|
||||||
sectionFrom = watchedFrom.library.section(_library.title)
|
sectionFrom = watchedFrom.library.section(_library.title)
|
||||||
if _library.type == 'show':
|
if _library.type == 'show':
|
||||||
for show in sectionFrom.all():
|
watched_lst = sectionFrom.search(libtype='episode', unwatched=False)
|
||||||
for episode in show.episodes():
|
|
||||||
if episode.isWatched:
|
|
||||||
watched_lst.append(episode)
|
|
||||||
else:
|
else:
|
||||||
for item in sectionFrom.search(unwatched=False):
|
watched_lst = sectionFrom.search(unwatched=False)
|
||||||
watched_lst.append(item)
|
|
||||||
|
|
||||||
for user in plexTo:
|
for user in plexTo:
|
||||||
username, server = user
|
username, server = user
|
||||||
|
Loading…
Reference in New Issue
Block a user