Fixed issue with soustitreseu when guessit is unable to guess episode or season from release name. #2569

pull/2575/head
morpheus65535 4 months ago
parent 48019281d0
commit ebf3471eec

@ -277,8 +277,12 @@ class SoustitreseuProvider(Provider, ProviderSubtitleArchiveMixin):
release = name[:-4].lower().rstrip('tag').rstrip('en').rstrip('fr')
_guess = guessit(release)
if isinstance(video, Episode):
try:
if video.episode != _guess['episode'] or video.season != _guess['season']:
continue
except KeyError:
# episode or season are missing from guessit result
continue
matches = set()
matches |= guess_matches(video, _guess)

Loading…
Cancel
Save