1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 01:02:19 +00:00
-fixed searching without imdbId
This commit is contained in:
Space 2020-01-24 12:06:18 +02:00
parent d8050f792a
commit 1801d2555b

View file

@ -196,7 +196,12 @@ class TitrariProvider(Provider, ProviderSubtitleArchiveMixin):
def list_subtitles(self, video, languages):
title = fix_inconsistent_naming(video.title)
imdb_id = video.imdb_id[2:]
imdb_id = None
try:
imdb_id = video.imdb_id[2:]
except:
logger.error("[#### Provider: titrari.ro] Error parsing video.imdb_id.")
return [s for s in
self.query(languages, title, imdb_id, video)]