From 1801d2555bed74adbf3177b8ff92220e2066bb7b Mon Sep 17 00:00:00 2001 From: Space Date: Fri, 24 Jan 2020 12:06:18 +0200 Subject: [PATCH] #769 -fixed searching without imdbId --- libs/subliminal_patch/providers/titrari.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/subliminal_patch/providers/titrari.py b/libs/subliminal_patch/providers/titrari.py index fa02509fc..0ccf1a622 100644 --- a/libs/subliminal_patch/providers/titrari.py +++ b/libs/subliminal_patch/providers/titrari.py @@ -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)]