no log: fixed imports

pull/1874/head
morpheus65535 2 years ago
parent 9ad0f56e59
commit 8de8c2c0c1

@ -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":

@ -4,5 +4,7 @@ try:
except ImportError:
__version__ = 'unknown'
from . import rrule
__all__ = ['easter', 'parser', 'relativedelta', 'rrule', 'tz',
'utils', 'zoneinfo']

@ -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

Loading…
Cancel
Save