From ebf3471eec3895ba06c5be3dfe1fb7efb7622100 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 10 Jul 2024 10:07:18 -0400 Subject: [PATCH] Fixed issue with soustitreseu when guessit is unable to guess episode or season from release name. #2569 --- custom_libs/subliminal_patch/providers/soustitreseu.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()