mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-10 08:47:52 +08:00
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
This commit is contained in:
parent
8adcd0b4f2
commit
c2a311689e
1 changed files with 2 additions and 0 deletions
|
@ -229,6 +229,8 @@ class SuperSubtitlesProvider(Provider, ProviderSubtitleArchiveMixin):
|
|||
continue
|
||||
|
||||
result_title = result_title.strip().replace("<EFBFBD>", "").replace(" ", ".")
|
||||
if not result_title:
|
||||
continue
|
||||
|
||||
guessable = result_title.strip() + ".s01e01." + result_year
|
||||
guess = guessit(guessable, {'type': "episode"})
|
||||
|
|
Loading…
Reference in a new issue