Allow printing combined CLI tags
This commit is contained in:
parent
8b3cda0495
commit
ed18df4678
@ -330,6 +330,17 @@ class CLI:
|
||||
self.output(md)
|
||||
except Exception as e:
|
||||
logger.error("Failed to read tags from %s: %s", ca.path, e)
|
||||
if not self.config.Auto_Tag__metadata.is_empty and not self.config.Runtime_Options__raw:
|
||||
try:
|
||||
md, tags_read = self.create_local_metadata(
|
||||
ca, self.config.Runtime_Options__tags_read or list(tags.keys())
|
||||
)
|
||||
tags_read_names = ", ".join(["CLI"] + [tags[t].name() for t in tags_read])
|
||||
self.output(f"--------- Combined {tags_read_names} tags ---------")
|
||||
self.output(md)
|
||||
except Exception as e:
|
||||
logger.error("Failed to read tags from %s: %s", ca.path, e)
|
||||
|
||||
return Result(Action.print, Status.success, ca.path, md=md)
|
||||
|
||||
def delete_tags(self, ca: ComicArchive, tag_id: str) -> Status:
|
||||
|
Loading…
Reference in New Issue
Block a user