diff options
author | morpheus65535 <[email protected]> | 2022-06-08 21:34:21 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2022-06-08 21:34:21 -0400 |
commit | 8de8c2c0c14140d61e70504adfed952603b9784d (patch) | |
tree | 658fc37ede7eb379cdca68d7f4ebe3bfedcc26e0 | |
parent | 9ad0f56e59822aeaa8ca2a1465d9b312b8e6ce56 (diff) | |
download | bazarr-8de8c2c0c14140d61e70504adfed952603b9784d.tar.gz bazarr-8de8c2c0c14140d61e70504adfed952603b9784d.zip |
no log: fixed imports
-rw-r--r-- | bazarr/subtitles/tools/embedded_subs_reader.py | 4 | ||||
-rw-r--r-- | libs/dateutil/__init__.py | 2 | ||||
-rw-r--r-- | libs/subliminal_patch/__init__.py | 1 |
3 files changed, 5 insertions, 2 deletions
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 |