Merge pull request #770 from IIIspaceIII/feature/provider-titrari-ro

Feature/provider titrari ro
This commit is contained in:
morpheus65535 2020-01-24 06:23:12 -05:00 committed by GitHub
commit 6c3a0ba354
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

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)]