mirror of
https://github.com/SickGear/SickGear.git
synced 2024-11-28 23:53:37 +00:00
change hachoir metadata extractor to best data extraction quality
This commit is contained in:
parent
695f9c2201
commit
c4289ae091
1 changed files with 2 additions and 1 deletions
|
@ -364,6 +364,7 @@ class Quality(object):
|
|||
|
||||
from hachoir.parser import createParser
|
||||
from hachoir.metadata import extractMetadata
|
||||
from hachoir.metadata.metadata_item import QUALITY_BEST
|
||||
from hachoir.stream import InputStreamError
|
||||
|
||||
parser = height = width = None
|
||||
|
@ -383,7 +384,7 @@ class Quality(object):
|
|||
parser.parse_exif = False
|
||||
parser.parse_photoshop_content = False
|
||||
parser.parse_comments = False
|
||||
extract = extractMetadata(parser, **args)
|
||||
extract = extractMetadata(parser, quality=QUALITY_BEST, **args)
|
||||
except (BaseException, Exception) as e:
|
||||
logger.warning(msg % (filename, ex(e)))
|
||||
if extract:
|
||||
|
|
Loading…
Reference in a new issue