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:
parent
48019281d0
commit
ebf3471eec
1 changed files with 5 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue