unify the hachoir imports to from lib.

This commit is contained in:
Prinz23 2024-11-20 10:46:41 +01:00 committed by JackDandy
parent b0566f7a53
commit 1168a23a66
2 changed files with 6 additions and 6 deletions

View file

@ -362,10 +362,10 @@ class Quality(object):
from sickgear import logger from sickgear import logger
if os.path.isfile(filename): if os.path.isfile(filename):
from hachoir.parser import createParser from lib.hachoir.parser import createParser
from hachoir.metadata import extractMetadata from lib.hachoir.metadata import extractMetadata
from hachoir.metadata.metadata_item import QUALITY_BEST from lib.hachoir.metadata.metadata_item import QUALITY_BEST
from hachoir.stream import InputStreamError from lib.hachoir.stream import InputStreamError
parser = height = width = None parser = height = width = None
msg = 'Hachoir can\'t parse file "%s" content quality because it found error: %s' msg = 'Hachoir can\'t parse file "%s" content quality because it found error: %s'

View file

@ -41,8 +41,8 @@ from ..sgdatetime import SGDatetime
from ..tv import TVEpisode, TVShow from ..tv import TVEpisode, TVShow
from cfscrape import CloudflareScraper from cfscrape import CloudflareScraper
from hachoir.parser import guessParser from lib.hachoir.parser import guessParser
from hachoir.stream import FileInputStream from lib.hachoir.stream import FileInputStream
from lxml_etree import etree from lxml_etree import etree
import requests import requests
import requests.cookies import requests.cookies