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