diff options
author | morpheus65535 <[email protected]> | 2024-07-10 10:07:18 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-07-10 10:07:18 -0400 |
commit | ebf3471eec3895ba06c5be3dfe1fb7efb7622100 (patch) | |
tree | c7c2de63fd4e427c1ef6a7e659e53ba16a4cb519 /custom_libs | |
parent | 48019281d087516cf06da1b014a112a75f524be6 (diff) | |
download | bazarr-ebf3471eec3895ba06c5be3dfe1fb7efb7622100.tar.gz bazarr-ebf3471eec3895ba06c5be3dfe1fb7efb7622100.zip |
Fixed issue with soustitreseu when guessit is unable to guess episode or season from release name. #2569
Diffstat (limited to 'custom_libs')
-rw-r--r-- | custom_libs/subliminal_patch/providers/soustitreseu.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/custom_libs/subliminal_patch/providers/soustitreseu.py b/custom_libs/subliminal_patch/providers/soustitreseu.py index 945b4a21b..727a70458 100644 --- a/custom_libs/subliminal_patch/providers/soustitreseu.py +++ b/custom_libs/subliminal_patch/providers/soustitreseu.py @@ -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() |