From c4289ae091089a531203775b4dbdbaf4e2a701ff Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Wed, 20 Nov 2024 07:54:42 +0100 Subject: [PATCH] change hachoir metadata extractor to best data extraction quality --- sickgear/common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sickgear/common.py b/sickgear/common.py index a9386820..8d349261 100644 --- a/sickgear/common.py +++ b/sickgear/common.py @@ -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: