From 820471b49b8c0df8043e2c4fa1e3c918628b1f5b Mon Sep 17 00:00:00 2001 From: Tobias Gruetzmacher Date: Sun, 17 Apr 2016 18:15:30 +0200 Subject: [PATCH] Move exclusion into 2nd stage. --- scripts/scriptutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scriptutil.py b/scripts/scriptutil.py index 12c633d16..56ab586c0 100644 --- a/scripts/scriptutil.py +++ b/scripts/scriptutil.py @@ -45,8 +45,6 @@ class ComicListUpdater(object): raise def should_skip(self, name): - if name in self.excluded_comics: - return True if contains_case_insensitive(self.res, name): # we cannot handle two comics that only differ in case print("INFO: skipping possible duplicate", repr(name), @@ -85,6 +83,8 @@ class ComicListUpdater(object): with codecs.open(self.json, 'rb', 'utf-8') as f: data = json.load(f) for name, entry in sorted(data.items(), key=first_lower): + if name in self.excluded_comics: + continue count = entry['count'] if count and count < min_comics: continue