models: Fix MediaElement.can_considered to check if next episode link is None

master
Felix Stupp 3 years ago
parent f989f75806
commit bf14abc887
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -362,8 +362,10 @@ class MediaElement(db.Entity, Tagable):
if self.skip_over:
return False
for link in self.collection_links:
if link.collection.watch_in_order and self != link.collection.next_episode.element:
return False
if link.collection.watch_in_order:
next = link.collection.next_episode
if next is not None and self != next.episode:
return False
return True
@property

Loading…
Cancel
Save