From 65e857af8bcf48f2131d83b7e907be2412327ef8 Mon Sep 17 00:00:00 2001 From: Mizaki Date: Sun, 11 Feb 2024 19:32:12 +0000 Subject: [PATCH] Move cache reset and load outside of loop. continue if it's impossible to use metadata --- comictaggerlib/taggerwindow.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index 5716b97..9019dd1 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -1544,8 +1544,8 @@ class TaggerWindow(QtWidgets.QMainWindow): failed_list.append(ca.path) # Abandon any further tag removals to prevent any greater damage to archive break - ca.reset_cache() - ca.load_cache(list(metadata_styles)) + ca.reset_cache() + ca.load_cache(list(metadata_styles)) progdialog.hide() QtCore.QCoreApplication.processEvents() @@ -1623,6 +1623,8 @@ class TaggerWindow(QtWidgets.QMainWindow): if ca.has_metadata(src_style) and ca.is_writable(): md = ca.read_metadata(src_style) + else: + continue for style in dest_styles: if ca.has_metadata(style):