1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2025-02-24 06:50:51 +00:00

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

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()