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

This commit is contained in:
morpheus65535 2024-07-10 10:07:18 -04:00
parent 48019281d0
commit ebf3471eec
1 changed files with 5 additions and 1 deletions

View File

@ -277,7 +277,11 @@ class SoustitreseuProvider(Provider, ProviderSubtitleArchiveMixin):
release = name[:-4].lower().rstrip('tag').rstrip('en').rstrip('fr')
_guess = guessit(release)
if isinstance(video, Episode):
if video.episode != _guess['episode'] or video.season != _guess['season']:
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()