Skip to content

Commit

Permalink
Add a fix so ignore existing option works with CI or MI (#152)
Browse files Browse the repository at this point in the history
I believe there are still some corner cases that might be missed, but this should fix the most common usage.
  • Loading branch information
bpepple authored Nov 23, 2024
1 parent 601cc3b commit 38d476e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions metrontagger/talker.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,16 @@ def identify_comics(

for fn in file_list:
if config.ignore_existing:
comic_archive = Comic(str(fn))
if comic_archive.has_metadata(MetadataFormat.COMIC_RACK):
comic = Comic(fn)
if (
comic.has_metadata(MetadataFormat.COMIC_RACK)
and self.comic_info
and not self.metron_info
) or (
comic.has_metadata(MetadataFormat.METRON_INFO)
and self.metron_info
and not self.comic_info
):
questionary.print(
f"{fn.name} has metadata. Skipping...",
style=Styles.WARNING,
Expand Down

0 comments on commit 38d476e

Please sign in to comment.