MediaCollection.add_episode: Do not update season/episode info if set to 0

master
Felix Stupp 1 year ago
parent 30ac2b1240
commit bc6a25b914
Signed by: zocker
GPG Key ID: 93E1BD26F6B02FB7

@ -893,7 +893,7 @@ class MediaCollection(db.Entity, UriHolder, Tagable):
if link is None:
change = True
link = MediaCollectionLink(collection=self, element=media)
if (link.season, link.episode) != (season, episode):
if (link.season, link.episode) != (season, episode) and (season, episode) != (0, 0):
change = True
link.season, link.episode = season, episode
if self.ignored and not media.skip_over:

Loading…
Cancel
Save