diff options
Diffstat (limited to 'libs/subliminal_patch/providers/embeddedsubtitles.py')
-rw-r--r-- | libs/subliminal_patch/providers/embeddedsubtitles.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/subliminal_patch/providers/embeddedsubtitles.py b/libs/subliminal_patch/providers/embeddedsubtitles.py index 828648432..b1d7b12f9 100644 --- a/libs/subliminal_patch/providers/embeddedsubtitles.py +++ b/libs/subliminal_patch/providers/embeddedsubtitles.py @@ -1,8 +1,8 @@ # -*- coding: utf-8 -*- import functools -import logging import hashlib +import logging import os import re import shutil @@ -14,10 +14,12 @@ from fese import container from fese import FFprobeSubtitleStream from fese import FFprobeVideoContainer from fese import tags +from fese.exceptions import ExtractionError from fese.exceptions import InvalidSource from subliminal_patch.core import Episode from subliminal_patch.core import Movie from subliminal_patch.providers import Provider +from subliminal_patch.providers.utils import blacklist_on from subliminal_patch.subtitle import Subtitle from subzero.language import Language @@ -185,6 +187,7 @@ class EmbeddedSubtitlesProvider(Provider): "series" if isinstance(video, Episode) else "movie", ) + @blacklist_on(ExtractionError) def download_subtitle(self, subtitle: EmbeddedSubtitle): path = self._get_subtitle_path(subtitle) |