From 331cbbd3bdb2966e7615539e46a08dee525ac51e Mon Sep 17 00:00:00 2001 From: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Date: Fri, 1 Jul 2022 04:07:26 +0200 Subject: Fixed Titulky provider to fail silently if media is missing IMDB ID. --- libs/subliminal_patch/providers/titulky.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/subliminal_patch/providers/titulky.py b/libs/subliminal_patch/providers/titulky.py index b7e84d73d..aedbe7906 100644 --- a/libs/subliminal_patch/providers/titulky.py +++ b/libs/subliminal_patch/providers/titulky.py @@ -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 -- cgit v1.2.3