Skip to content

Improved handling of comic book archive and other archive formats#574

Open
omega-fallon wants to merge 17 commits intop2r3:masterfrom
omega-fallon:comic-books-2
Open

Improved handling of comic book archive and other archive formats#574
omega-fallon wants to merge 17 commits intop2r3:masterfrom
omega-fallon:comic-books-2

Conversation

@omega-fallon
Copy link
Copy Markdown
Contributor

Various changes made for the sake of simpler and more expected conversion between archive formats.

@omega-fallon omega-fallon marked this pull request as ready for review March 23, 2026 01:36
Comment on lines +65 to +66
{from: "image", to: "image archive", cost: -1}, // Prioritize immensely
{from: "image archive", to: "image archive", cost: -2}, // Prioritize more
Copy link
Copy Markdown
Owner

@p2r3 p2r3 Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firstly, not a fan of negative weights. There's almost certainly a better way to accomplish whatever this is doing.

Secondly, can you explain why you had to do this? You really shouldn't mess with weights unless absolutely necessary. I suspect that this is "patching" some problem, rather than fixing the root cause.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First line is because the sevenZip converter has "any input" enabled, which causes slow routing if the input is some non-image and the output is an image archive. While I could split the converter in two such that there's a separate, image input–only converter for compiling image archives, that'd be a lot of duplicated code. The second line looking back is probably redundant with lines 72-75, so I'll remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants