mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-28 23:53:37 +00:00
unify the hachoir imports to from lib.
This commit is contained in:
parent
b0566f7a53
commit
1168a23a66
2 changed files with 6 additions and 6 deletions
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue