From 1168a23a66b5a45a36dba4d7bd79974ab6255095 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Wed, 20 Nov 2024 10:46:41 +0100 Subject: [PATCH] unify the hachoir imports to from lib. --- sickgear/common.py | 8 ++++---- sickgear/providers/generic.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sickgear/common.py b/sickgear/common.py index 8d349261..6d97554f 100644 --- a/sickgear/common.py +++ b/sickgear/common.py @@ -362,10 +362,10 @@ class Quality(object): from sickgear import logger if os.path.isfile(filename): - from hachoir.parser import createParser - from hachoir.metadata import extractMetadata - from hachoir.metadata.metadata_item import QUALITY_BEST - from hachoir.stream import InputStreamError + from lib.hachoir.parser import createParser + from lib.hachoir.metadata import extractMetadata + from lib.hachoir.metadata.metadata_item import QUALITY_BEST + from lib.hachoir.stream import InputStreamError parser = height = width = None msg = 'Hachoir can\'t parse file "%s" content quality because it found error: %s' diff --git a/sickgear/providers/generic.py b/sickgear/providers/generic.py index 3f088120..ebf3227a 100644 --- a/sickgear/providers/generic.py +++ b/sickgear/providers/generic.py @@ -41,8 +41,8 @@ from ..sgdatetime import SGDatetime from ..tv import TVEpisode, TVShow from cfscrape import CloudflareScraper -from hachoir.parser import guessParser -from hachoir.stream import FileInputStream +from lib.hachoir.parser import guessParser +from lib.hachoir.stream import FileInputStream from lxml_etree import etree import requests import requests.cookies