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:
parent
2bd38817b0
commit
331cbbd3bd
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue