Skip to content

Commit

Permalink
Fixed Titulky provider to fail silently if media is missing IMDB ID.
Browse files Browse the repository at this point in the history
  • Loading branch information
sambartik committed Jul 1, 2022
1 parent 2bd3881 commit 331cbbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/subliminal_patch/providers/titulky.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,13 +421,13 @@ def list_subtitles(self, video, languages):
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

Expand Down

0 comments on commit 331cbbd

Please sign in to comment.