summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSteve Adams <[email protected]>2020-11-04 14:34:23 +1100
committerGitHub <[email protected]>2020-11-04 14:34:23 +1100
commitc2a311689e4e47e0d0f252ddbcc515b44ad908b9 (patch)
treed3543971eaf64c4aa9083fa3740f7452bfbdea04
parent8adcd0b4f293accb332ac512d2c2fd663483f72c (diff)
downloadbazarr-c2a311689e4e47e0d0f252ddbcc515b44ad908b9.tar.gz
bazarr-c2a311689e4e47e0d0f252ddbcc515b44ad908b9.zip
Handle when title cannot be parsed
For example https://www.feliratok.info/index.php?term=American%20Chopper&nyelv=0&action=autoname returns a result which causes https://github.com/morpheus65535/bazarr/issues/1179#issuecomment-721068203
-rw-r--r--libs/subliminal_patch/providers/supersubtitles.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/subliminal_patch/providers/supersubtitles.py b/libs/subliminal_patch/providers/supersubtitles.py
index 9c9653a18..7add15277 100644
--- a/libs/subliminal_patch/providers/supersubtitles.py
+++ b/libs/subliminal_patch/providers/supersubtitles.py
@@ -229,6 +229,8 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin):
continue
result_title = result_title.strip().replace("�", "").replace(" ", ".")
+ if not result_title:
+ continue
guessable = result_title.strip() + ".s01e01." + result_year
guess = guessit(guessable, {'type': "episode"})