diff --git a/comicapi/comicarchive.py b/comicapi/comicarchive.py index f93c953..2610892 100644 --- a/comicapi/comicarchive.py +++ b/comicapi/comicarchive.py @@ -362,7 +362,7 @@ class ComicArchive: length = digest.name.rpartition("_")[2] if not length.isdigit(): length = "128" - md.original_hash = FileHash(digest.name, digest.hexdigest(int(length) // 8)) + md.original_hash = FileHash(digest.name, digest.hexdigest(int(length) // 8)) # type: ignore[call-arg] else: md.original_hash = FileHash(digest.name, digest.hexdigest()) except Exception: diff --git a/comictaggerlib/ctsettings/commandline.py b/comictaggerlib/ctsettings/commandline.py index 96219dd..df81bd3 100644 --- a/comictaggerlib/ctsettings/commandline.py +++ b/comictaggerlib/ctsettings/commandline.py @@ -313,7 +313,9 @@ def validate_commandline_settings(config: settngs.Config[ct_ns], parser: settngs disabled_tags = {tag for tag in comicarchive.tags if not comicarchive.tags[tag].enabled} to_be_removed = ( - set(config[0].Runtime_Options__tags_read).union(config[0].Runtime_Options__tags_write).union(disabled_tags) + set(config[0].Runtime_Options__tags_read) + .union(config[0].Runtime_Options__tags_write) + .intersection(disabled_tags) ) if to_be_removed: logger.debug("Removing disabled tags: %s", to_be_removed)