diff options
author | Steve Adams <[email protected]> | 2020-11-04 14:34:23 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-11-04 14:34:23 +1100 |
commit | c2a311689e4e47e0d0f252ddbcc515b44ad908b9 (patch) | |
tree | d3543971eaf64c4aa9083fa3740f7452bfbdea04 /libs | |
parent | 8adcd0b4f293accb332ac512d2c2fd663483f72c (diff) | |
download | bazarr-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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/subliminal_patch/providers/supersubtitles.py | 2 |
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"}) |