summaryrefslogtreecommitdiffhomepage
path: root/custom_libs
diff options
context:
space:
mode:
authorVitiko <[email protected]>2024-07-09 18:51:51 -0400
committerVitiko <[email protected]>2024-07-09 18:51:51 -0400
commitaafaf1cbf1ac29249960f2d5f2c7ba0608a5c284 (patch)
treea0631b9ec54a7e187f5528f23e6045e947e1dc82 /custom_libs
parent12e7bbfb01e846f95074705a111823eab72f5a7d (diff)
downloadbazarr-aafaf1cbf1ac29249960f2d5f2c7ba0608a5c284.tar.gz
bazarr-aafaf1cbf1ac29249960f2d5f2c7ba0608a5c284.zip
Update fese (extractor) (cover #2538)
Diffstat (limited to 'custom_libs')
-rw-r--r--custom_libs/subliminal_patch/providers/embeddedsubtitles.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/custom_libs/subliminal_patch/providers/embeddedsubtitles.py b/custom_libs/subliminal_patch/providers/embeddedsubtitles.py
index 002f439b7..2d8a492c7 100644
--- a/custom_libs/subliminal_patch/providers/embeddedsubtitles.py
+++ b/custom_libs/subliminal_patch/providers/embeddedsubtitles.py
@@ -112,7 +112,11 @@ class EmbeddedSubtitlesProvider(Provider):
# Default is True
container.FFMPEG_STATS = False
- tags.LANGUAGE_FALLBACK = self._fallback_lang if self._unknown_as_fallback and self._fallback_lang else None
+ tags.LANGUAGE_FALLBACK = (
+ self._fallback_lang
+ if self._unknown_as_fallback and self._fallback_lang
+ else None
+ )
logger.debug("Language fallback set: %s", tags.LANGUAGE_FALLBACK)
def initialize(self):
@@ -194,7 +198,7 @@ class EmbeddedSubtitlesProvider(Provider):
def download_subtitle(self, subtitle: EmbeddedSubtitle):
try:
path = self._get_subtitle_path(subtitle)
- except KeyError: # TODO: add MustGetBlacklisted support
+ except KeyError: # TODO: add MustGetBlacklisted support
logger.error("Couldn't get subtitle path")
return None
@@ -229,6 +233,7 @@ class EmbeddedSubtitlesProvider(Provider):
timeout=self._timeout,
fallback_to_convert=True,
basename_callback=_basename_callback,
+ progress_callback=lambda d: logger.debug("Progress: %s", d),
)
# Add the extracted paths to the containter path key
self._cached_paths[container.path] = extracted