Fixed Titulky provider to fail silently if media is missing IMDB ID.

pull/1896/head
Samuel Bartík 3 years ago committed by GitHub
parent 2bd38817b0
commit 331cbbd3bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -421,13 +421,13 @@ class TitulkyProvider(Provider, ProviderSubtitleArchiveMixin):
season=video.season,
episode=video.episode)
else:
raise ProviderError("No IMDB ID found for the series!")
logger.info(f"Titulky.com: Skipping {video}! No IMDB ID found.")
elif isinstance(video, Movie):
if video.imdb_id:
logger.info("Titulky.com: Searching subtitles for a movie")
subtitles = self.query(languages, SubtitlesType.MOVIE, imdb_id=video.imdb_id)
else:
raise ProviderError("No IMDB ID found for the movie!")
logger.info(f"Titulky.com: Skipping {video}! No IMDB ID found.")
return subtitles

Loading…
Cancel
Save