Merge pull request #1185 from stevezau/patch-4

supersubtitles handle when title cannot be parsed
This commit is contained in:
morpheus65535 2020-11-03 22:38:03 -05:00 committed by GitHub
commit 2cba5e0ed1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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"})