diff --git a/bazarr/subtitles/tools/embedded_subs_reader.py b/bazarr/subtitles/tools/embedded_subs_reader.py index 5a6a1eb7a..3a6ff50c5 100644 --- a/bazarr/subtitles/tools/embedded_subs_reader.py +++ b/bazarr/subtitles/tools/embedded_subs_reader.py @@ -5,7 +5,7 @@ import os import pickle import enzyme -from knowit import api +from knowit.api import know from enzyme.exceptions import MalformedMKVError from languages.custom_lang import CustomLanguage @@ -106,7 +106,7 @@ def parse_video_metadata(file, file_size, episode_file_id=None, movie_file_id=No # if we have ffprobe available if ffprobe_path: - data["ffprobe"] = api.know(video_path=file, context={"provider": "ffmpeg", "ffmpeg": ffprobe_path}) + data["ffprobe"] = know(video_path=file, context={"provider": "ffmpeg", "ffmpeg": ffprobe_path}) # if not, we use enzyme for mkv files else: if os.path.splitext(file)[1] == ".mkv": diff --git a/libs/dateutil/__init__.py b/libs/dateutil/__init__.py index 0defb82e2..a6bdd9381 100644 --- a/libs/dateutil/__init__.py +++ b/libs/dateutil/__init__.py @@ -4,5 +4,7 @@ try: except ImportError: __version__ = 'unknown' +from . import rrule + __all__ = ['easter', 'parser', 'relativedelta', 'rrule', 'tz', 'utils', 'zoneinfo'] diff --git a/libs/subliminal_patch/__init__.py b/libs/subliminal_patch/__init__.py index 522280c61..c8780e961 100644 --- a/libs/subliminal_patch/__init__.py +++ b/libs/subliminal_patch/__init__.py @@ -15,6 +15,7 @@ from .score import compute_score from .video import Video from . import extensions from . import http +from . import core # patch subliminal's core functions subliminal.scan_video = subliminal.core.scan_video = scan_video