1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-25 09:12:38 +00:00

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

This commit is contained in:
Samuel Bartík 2022-07-01 04:07:26 +02:00 committed by GitHub
parent 2bd38817b0
commit 331cbbd3bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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