📰 News¶
v5.8.0¶
💥 Breaking Changes¶
Warning
- Half issues are .5:
1/2or½is issue 0.5, not 1, and sorts differently. - Each
-Qis one step quieter, and never louder thangeneral.loglevel. - A read-only comic is refused instead of rewritten.
- An
auto_thresholdoutside 0 to 1 is a config error. - Library:
preload_resolution(action="manual")needs apath.
♻️ Changed¶
- Starts about half a second faster with the PDF extra, and reads every page of a CB7 many times faster.
- A write’s tagger stamp keeps the other lines of notes instead of replacing them all.
🐛 Fixed¶
- MetronInfo no longer relabels or drops tag ids on write.
--idrefuses a directory of several comics instead of tagging them all as one issue.--importof an unrecognised file no longer writes its text into series and title.- Names differing only by case, such as
Stan LeeandSTAN LEE, keep both’s roles and ids. - Library: a manual issue id answered in a prompt no longer tags later issues of the series.
- Failed exports and extractions, unreadable
-ifiles and bad-xranges fail instead of exiting 0, and--validatechecks the whole batch. -Xno longer writes a cover over a comic or another comic’s cover, and extracted pages sharing a name no longer overwrite each other.- Converting comics whose names differ only by case no longer overwrites one, and conversions keep file mode and owner.
- Ctrl-C under
-j Nstops promptly, and a prompt at end of input aborts instead of looping. - ComicInfo
-1reads as unset, and CoMet, ComicBookInfo and MetronInfo write only what their schemas allow. - Reading lists no longer tag two volumes or two different issues for one entry, and match variant covers.
- Metron stays paced behind a proxy error, and a Comic Vine outage reports a failed search, not no match.
🔒 Security¶
- A malformed
--authentry’s error no longer prints the token.
v5.7.1¶
✨ Added¶
comicbox rl matchlists the comics refused for a missing entry as another volume or for their cover year.
🐛 Fixed¶
- Reading lists match an entry with only a volume number to comics that also have a start year, and keep same-numbered volumes of different years apart.
🧑💻 Developer¶
MatchResult.refusedlists the comics a missing entry refused as another volume or for its cover year.
v5.7.0¶
✨ Added¶
- Reading lists:
comicbox rlprints, validates, converts, combines and compares CBL, json-cbl and comicbox lists, fetches them from Metron, Comic Vine, the DieselTech catalog and URLs, and tags matching comics with the list’s story arc. - VerseDB online source, used only with a token:
--auth versedb:TOKEN. - MetronInfo reads and writes VerseDB and Marvel ids.
♻️ Changed¶
- With
--all-sources, the first source in--onlineorder wins disagreements, not Comic Vine. - MetronInfo.xml is written as the v1.3 draft.
- Metron cover searches are no longer cached.
🐛 Fixed¶
- Filename parsing reads
01 of 12issue counts and an issue before a dashed title.
🧑💻 Developer¶
comicbox.readinglistsAPI withReadingListSessionfor fetching.OnlineCredentials.versedb_keyandsource_attribution()for source credits.- Requires comicfn2dict 1.1.3, mokkari 5.2 and versedb 1.0.
v5.6.2¶
✨ Added¶
-w keepwrites back the tag formats a comic already has, and-w cix,keepadds ComicInfo to them, removing none.- Metron tagging finds a comic by its cover first: a clear cover match is written without a name search, and prompts also offer the issues the cover search found.
♻️ Changed¶
--match carefulalso writes a clear Metron cover match;--match asklists it first.- A tag write that fails while comicbox is running leaves the comic as it was. A process killed in the middle of one can still leave the tag files damaged, as before; the pages are never touched.
-wkeeps a free-text archive comment, such as a scanner’s note, and clears only a ComicBookInfo comment.- A comic Metron finds only by its cover prompts, or skips under
--prompts never, instead of reporting no match. - Online tagging warns and finds no Metron match for a comic with a series name but no issue number or year, where it prompted with every issue of every series with that name in it.
--series-id metron:IDstill searches one.
🗑️ Deprecated¶
Note
- The
cblformat key for ComicBookInfo, removed in 6.0. Usecbi.
🐛 Fixed¶
-w pdfwrites a PDF’s own metadata, which it never did, clearing a field the metadata no longer has, and removes its embedded tag files, as-wdoes in a zip, so what it wrote reads back.-w keeprewrites both, and--delete-all-tagsnow clears a PDF’s own metadata too.-wnaming only formats a comic cannot hold, such as-w pdfon a CBZ, is refused, where it removed every tag file and wrote none; one it cannot hold beside others it can is skipped with a warning.- A PDF write no longer overwrites another attachment with the old ComicInfo, or fails and loses tag files when a PDF has several. Converting a PDF whose attachment is named like a page number, or like a page it converts to (
1.jpeg), is refused, where its CBZ had the page twice and lost the attachment. - A plain
series: Crimson Tide,volume: 2006, publisher or imprint in comicbox YAML, JSON or a library patch is read, where it was dropped without a word. write_metadataandbulk_writewrite nothing for a patch that does not load, and return the error, where they rewrote the comic and reported success.--cbzwithout-wwrites back only the tag formats the comic carried, a ComicBookInfo comment as a comment: it addedcomicbox-cli.yamlfor-mand turned the comment into a file. It warns of an-mor--importvalue none of those formats can hold.- Online tagging matches accented and non-Latin series names:
Pokémonwas compared aspok mon, and a Japanese or Cyrillic name as nothing. - Tag files are written into an archive in one fixed order.
- Comic YAML repeats a value it holds twice, such as one date for cover and store, instead of writing
&id001and*id001. - Issue
-1is read as the number -1; it was read as a suffix, with no number. - A partial date, such as CoMet’s
2006or2006-07, is read as its year and month; it was completed with today’s month or day. - A cover date from a higher source, such as
-m, replaces a comic’s own date that it contradicts, where the old date or its day survived; a year, month or day given alone still changes only that part. - A comic a run reaches by several paths, such as a file and a link to it under
-r, is processed once, through the file. - A batch write that names one archive twice, by a link and its target, no longer writes it twice at once and damages it.
- A RAR or 7z archive named
.cbzis refused in one line that names its real type, where a write failed with an error. - A conversion onto a file already there, and a page extraction to a target that is not a directory, are reported in one line, without a traceback.
- A write that replaces or removes a tag file comicbox could not parse warns, naming it.
--renamechanges the case of a name on a case-insensitive disk, and says so when a link to the comic already has the new name, where it said “Renamed” and changed nothing. It says nothing for a comic already at its name.- A path that does not exist fails the run, logged once, where it exited 0.
- A ComicInfo
Webholding two urls for one database reads the first url’s id every time, and is written back in its order. - A six-digit date such as
200607reads as July 2006, not 20 June 2007. - An environment variable for a list setting reads a plain string as its CLI option does:
COMICBOX_WRITE__FORMATS=cix,miwas read one letter at a time. - ComicInfo keeps every story arc’s number when another arc has none.
- Online summaries no longer show HTML entities such as
&. - A cache lifetime written as a number, such as
ttl: 0, no longer stops the config from loading. - Metron 400 and 404 responses fail at once instead of retrying.
🧑💻 Developer¶
- Requires mokkari 5.1.
v5.6.1¶
🐛 Fixed¶
- Filenames no longer get a bare
(of 3)count when there is no volume or issue.
🧑💻 Developer¶
- Requires comicfn2dict 1.1.1.
v5.6.0¶
✨ Added¶
- Schema reference pages in the docs for Comicbox 3.0, ComicInfo, MetronInfo, ComicBookInfo, CoMet and filenames, under Schemas.
♻️ Changed¶
- Filenames read and write the month, day and volume count, so renames get
(1950-11-01); a publisher like(DC)is read, not written. - Change docs to use Zensical instead of MkDocs. The API reference moved to /reference/comicbox/.
🐛 Fixed¶
- Filenames comicbox writes read back:
#-001and#Omegaissues, and the bracketed remainders group. (Digital)and(DC)alone no longer read as the title;(Digital: Empire)and(c2c) (Group)read as format and scan info, and(2020-12)as a year.- Leftover filename text is kept in
remainders.
🧑💻 Developer¶
- Requires comicfn2dict 1.1.
- The
pdfextra requires comicbox-pdffile 1.1.2.
v5.5.1¶
🧑💻 Developer¶
- Requires typing-extensions only on Python 3.11.
- Requires python-dateutil v4.0
v5.5.0¶
💥 Breaking Changes¶
Warning
- Metron authenticates only with an API token; username, password and keyring support are gone.
OnlineCredentialsdropsmetron_userandmetron_password.- MetronInfo.xml is written as v1.2 instead of v1.1.
✨ Added¶
- MetronInfo v1.2: series end year, status and summary.
🐛 Fixed¶
- Languages with a region or script, like
pt-BRorzh-Hant, are no longer dropped. --cache refreshno longer breaks another program sharing the Metron cache.- Corrupt Metron cache files are rebuilt; ones from a newer mokkari are left alone.
- Metron honors a
--cache-ttlunder a day, and empty search results expire within a day. - mokkari log messages follow comicbox’s log level and format.
- Reading pages from some PDFs no longer hangs or errors.
🧑💻 Developer¶
- Requires mokkari 5.0. The Metron cache starts empty on the first run.
- No longer requires keyring.
- PDF support requires comicbox-pdffile 1.1, which uses pymupdf-lite. pip users: uninstall pymupdf, then reinstall pymupdf-lite.
comicbox doctorwarns if both are installed. If you override the dependency for full pymupdf, comicbox will work.
v5.4.0¶
✨ Added¶
- Series end year, status and summary in comicbox.json and comicbox.yaml.
- Online tagging fills series years, status, summary and issue count, the publication format from Metron, and tags from Comic Vine concepts and objects.
- Match prompts show each candidate’s series start year, publisher, issue count, issue title and description, and Metron’s publication format when titles would otherwise read the same.
v5.3.2¶
🐛 Fixed¶
- Renamed files no longer contain colons or other characters Windows and SMB shares can’t store.
- Metron API tokens are used alone: leftover username/password settings no longer warn, and
~/.netrcno longer overrides them.
🧑💻 Developer¶
- Requires mokkari 4.10.
v5.3.1¶
🐛 Fixed¶
OnlineSessionacceptsMatchMode.ASKwhen a prompt handler or deferred prompts can resolve its prompts, so an embedding app can review every match.
v5.3.0¶
💥 Breaking Changes¶
Warning
- Requires Python 3.11 or later.
✨ Added¶
comicbox doctorchecks archive tools, the PDF extra, image codecs, config, credentials and package versions, with a fix for each problem.--online allalso tests each credential with one API request.
🐛 Fixed¶
- CBR support is detected by test-extracting a file; a missing or broken RAR tool is reported instead of crashing reads.
- A broken PDF install disables PDFs with a warning instead of breaking comicbox, and
is_pdf_supported()agrees. - A malformed user config is skipped with a warning, and config errors print one line instead of a traceback.
- Per-source online tuning values are validated; unknown sources warn.
- A broken 7z or RAR library no longer aborts batch reads.
- Short-form PDF dates, like those without a timezone, are no longer dropped.
- Filenames with long digit runs no longer stall parsing.
- Config mappings accept enum members like
MatchMode.EAGERas well as their string values. - Error messages keep bracketed text like
[digital].
🧑💻 Developer¶
- Requires comicfn2dict 1.0, comicbox-pdffile 1.0, simyan 4.2, mokkari 4.9 and packaging. No longer requires imagehash, numpy, scipy or PyWavelets.
v5.2.2¶
🐛 Fixed¶
get_page_by_index()returnsNonefor an index past the last page instead of raisingStopIteration.- Extracting covers writes each cover once. A cover found by more than one heuristic was written, and counted, once per heuristic.
v5.2.1¶
🐛 Fixed¶
OnlineSession.close()releases Comic Vine’s connections and sqlite handles too, not just Metron’s.
v5.2.0¶
✨ Added¶
comicbox.predict.predict_write_destination()reports where a write would land, and whether that path is taken, before anything is written.- A destination collision raises
DestinationOccupiedError, which names the occupied path and says which kind of collision it was. - Match candidates carry a full-size cover url alongside the thumbnail.
OnlineSession.close()releases the pooled Metron connections; the CLI does this at the end of every run.
♻️ Changed¶
- Metron requests reuse one pooled connection per run instead of a new TLS handshake each (mokkari 4.8.0).
🐛 Fixed¶
bulk_writechecks every destination before doing any work, so a batch fails fast instead of repacking an archive and refusing it at the end.preflight=Falserestores the old behavior.- Two archives in one batch that convert to the same name now lose deterministically, by submission order, instead of by thread race.
- A kept-original CBR whose CBZ twin already exists is refused before its metadata is read, on the command line as well as the API.
🧑💻 Developer¶
- Requires mokkari 4.8.0. Metron pacing now registers through mokkari’s
rate_limiterhook instead of overriding a private method.
v5.1.2¶
✨ Added¶
- The end-of-run Metron summary counts connection failures and responses that arrived without rate-limit headers.
♻️ Changed¶
- A Metron search that misses now costs 2 API requests instead of up to 6.
v5.1.1¶
✨ Added¶
- A run that stops itself says why.
OnlineSession.abort_reasoncarries the reason a lookup aborted the batch — most usefully a spent daily API quota, which stops a run nobody asked to stop. A caller’s owncancel()leaves it unset, so an embedding application can tell a pause it initiated from one the server forced. - A search the daily-quota reserve stopped now reports
Skippedwithreason="quota_reserved"instead of passing for a source that looked and found nothing. Those two call for opposite handling: a comic nobody searched for should be tried again tomorrow, and one that genuinely missed should not. The matcher’s own reason is now the exported constantSKIP_MATCHER_DECLINEDalongsideSKIP_QUOTA_RESERVED.
v5.1.0¶
✨ Added¶
- Comicbox warns when Metron’s daily quota drops below 10%, stops starting new searches near the floor so the rest of the budget finishes comics that already matched, and stops cleanly at zero. Re-running is cheap — the response cache replays what was already fetched.
- The end-of-run summary reports API cost: requests sent per endpoint, rejections, seconds spent pacing, and the remaining per-minute and daily budgets.
online.tuning.per_source.metron.rate_limit.per_minuteworks again, as a ceiling on the server-reported limit. Set it to share one token between several processes. Note that a config which already sets it was being warned it was ignored, and will now actually be held to it.per_dayis still ignored and still says so.--jobsis no longer capped at 20 for Metron runs. The cap bounded workers, which is not what Metron throttles; the gate bounds requests.- The outgoing User-Agent identifies the entry point, e.g.
comicbox/5.1.0 (cli; jobs=8).OnlineSession(client_name=...)names an embedding application. metron_requests_for_batch(comics, series)prices a batch the way one actually runs — each series resolved once, the rest of its comics at the warm price — instead of charging every comic a cold search. Pacing math now prefers the burst limit Metron reported over the documented default.
♻️ Changed¶
- A
-j Nbatch resolves each series once instead of once per worker. Workers that want the same series wait for whoever is resolving it and then take the warm path, and the dispatcher hands the pool one file per series first, so its first N tasks are N different series rather than N copies of the same cold search. - Metron batches holding many comics from one series fetch that series’ issue list once instead of once per comic, when Metron’s reported issue count says that is actually cheaper. A 100-issue single-series run drops from about 200 requests to about 102.
- Comic Vine tagging spends half the API budget it used to. simyan 4.1.0 stops paginating past a short page, so each candidate volume’s issue lookup costs one request against Comic Vine’s 200-per-hour
issuespool instead of two. That pool paces a Comic Vine run, so runs are faster as well as cheaper, andestimate_run()now projects the request count rather than a floor half its size.
🐛 Fixed¶
- A comic with no issue number no longer mis-tags itself with the first issue of a series matched earlier in the same run.
- Metron tagging no longer sends requests the server is going to refuse. Every request now passes through a process-wide rate gate that models Metron’s own sliding window, so a
-j Nbatch stays inside the per-minute limit instead of discovering it by being rejected. This matters more than it sounds: Metron counts a rejected request against the daily quota exactly like a successful one, so the old behavior spent budget on nothing. Reported as #207. - A rate-limit rejection now releases one worker when one slot frees, rather than every worker at once.
Retry-Aftersays when a single request becomes possible, not when the window refills; waiting it out and then sending the whole queue earned one success and a fresh burst of rejections. online.tuning.retry_budgetis wired up. It was parsed, defaulted and then never passed to the retry decorator, so a config that set it kept getting the built-in 5 attempts; it now gets the number it asked for.- An aborted lookup is no longer retried. Nothing classified
OnlineLookupAbortedError, so it fell through to the retriable default and was replayed on the rate-limit schedule.
🧑💻 Developer¶
- Require simyan >= 4.1.0.
v5.0.0¶
💥 Breaking Changes¶
Warning
- Comicbox schema v3.0. Version 2.0 documents no longer load.
- Credit roles and age ratings use MetronInfo’s names and scale, so finer ComicInfo ratings like
Everyone 10+becomeEveryone. The primary credit flag is now per role, not per person. mangano longer carries reading direction. See the newreading_directionandmanga_volumefields.- Web links moved out of
identifiersinto a newurlslist, andidentifier_primary_sourcebecameprimary_id_source. - ComicInfo’s
GTINholds a barcode again instead of a comicbox urn, which is what Kavita, Komga and Mylar expect. Files written the old way read. - A stated
titleis kept as written and stories are only read out of it when the comic lists none. A series’ other names live inseries.alternative_names. - Removed
critical_ratingandalternate_images, which mapped to no format. - Removed
--replace; use--merge-mode update. The write API takesmerge_modeinstead ofmode, andWriteModeis nowMergeMode. OnlineSessiontakesmatchandpromptsinstead ofmodeandunattended, matching--matchand--prompts.set_modeandset_unattendedareset_matchandset_prompts, the prompt objects carrymatchandprompts, and theset_unattendedselector action isset_prompts, which names the policy it sets and so can turn prompts back on.- Environment variables nest with
__, and every config key can be set that way:COMICBOX_ONLINE__AUTH__METRON__KEY. Old flat names warn. estimate_run()andrequests_per_comic()take aneffortinstead of a match mode, which never changed what a search costs.
✨ Added¶
- New
--merge-modechooses how supplied metadata merges into a comic’s existing tags:additive(the default),replaceorupdate. - Web urls in the Notes field are read into
urls. - Online API: new
SourceStartedevent,Effortis exported alongsideMatchMode, andrate_limit_status()now covers Comic Vine as well as Metron. OnlineSessionaccepts aconfig, the settings it layers its tagging preferences over. An embedder that already holds configured settings — naming its own cache directory or effort — hands them over instead of exporting environment variables for the settings loader to find.
♻️ Changed¶
- A 200 page, 117 MiB CB7 converts in 6.2s instead of 232s, with 318 MiB peak RSS instead of 1.9 GiB.
- Online tagging batches by series, downloads covers in parallel and bounds Comic Vine calls per comic (
--effort thoroughrestores the unbounded search). Rate-limit waits are interruptible again. - Comicbox starts about a third faster and building a
Comicboxis about forty times cheaper. Books with many reprints read up to fifty times faster.
🐛 Fixed¶
- Two silent data losses: an XML tag carrying an attribute, like
<Series lang="en">, took the file’s whole metadata down with it, and MetronInfo tag-level ids were discarded in files that name no primary id source. - Writing metadata no longer rewrites a comic’s pages, so tagging is faster and an interrupted write can’t damage a page. One archive named twice in a batch is no longer repacked by two threads at once and destroyed.
- Online tagging reports a match only when metadata was really applied, and a lone mediocre match no longer auto-writes without a prompt. Prompts hold up under batch and parallel runs.
--effort balancedis honored; a large unattended run no longer quietly downgrades it tominimalfor Comic Vine.-c/--configloads the file it names instead of being ignored, and an unknown--onlinesource is an error rather than a silent widening: a typo like--online metrnqueried every configured database.- Reading metadata no longer depends on write settings, so
--online --write … --renameno longer names the file from stale data. - A comic that can’t be read no longer ends the batch, and
comicboxexits non-zero whenever any file failed. - MetronInfo alternative name ids link to their series, and reprint ids to the issue they reprint, instead of to pages that don’t exist.
- The no-TTY hint names
--prompts neverinstead of--unattended, which never existed. - Many smaller repairs to credit roles, tag coverage, identifiers, urls and odd data that used to cost a whole comic. Metadata comicbox skips is now named in a warning instead of dropped silently.
🧑💻 Developer¶
- Require simyan >= 4.0.0.
v4.8.6¶
✨ Added¶
Comicbox.predict_filename()returns the scheme namerename_file()would rename to, without renaming.rename_file()now uses it, so a caller can show or check the destination first.
🐛 Fixed¶
- Renaming keeps the archive’s own file extension. The name ends in
ext, a metadata field, so a config that skips it fell back to “cbz” and a stale value embedded by another tagger overrode the real one — either way renaming a PDF or CBT to a name claiming to be a zip. - Converting no longer writes the pre-conversion
extinto the new archive’s metadata, which is what left those stale values behind. - Archives differing only by suffix no longer destroy each other when converted in one bulk write. They all convert to the same
.cbz, and the loser could replace the winner’s finished file whiledelete_origunlinked both originals; it now fails cleanly instead.
v4.8.5¶
✨ Added¶
write_metadataandbulk_writeresults reportfinal_path: the archive’s on-disk path after the write. It differs from the submittedpathwhen the write repacked an unwritable archive (CBR/CBT/CB7) into a CBZ, so callers tracking files on disk can follow the conversion.
v4.8.4¶
✨ Added¶
- Short options for more common flags. See
--help.
v4.8.3¶
🐛 Fixed¶
- CBR files whose RAR3 extended timestamps carry a sub-second remainder of a second or more no longer fail to open with
ValueError: microsecond must be in 0..999999. rarfile <= 4.5 overflows parsing these, which some third-party packers write; comicbox now carries the excess into whole seconds. The patch deactivates itself if a future rarfile fixes the overflow. - Content based archive detection tries formats in observed frequency order (zip, rar, pdf, 7z, tar) when the file extension hint misses, instead of trying the rarest formats first. Every detector in that order now requires leading magic — zip included — so a pdf or 7z with zip data appended can no longer be claimed by the zip tail scan; zips with prepended data (self-extractors) are still detected by a terminal loose pass.
v4.8.2¶
✨ Added¶
- Metron tagging populates
languagefrom the issue’s series. - Metron prices in EUR and ITL are attributed to Italy. EUR is deliberate: metron.cloud’s euro prices currently all come from its Italian comics catalog.
🧑💻 Developer¶
- Require mokkari >= 4.5.0.
v4.8.1¶
🧑💻 Developer¶
- Require simyan >= 3.1.0 and use its new
search_volumes()API.
v4.8.0¶
✨ Added¶
OnlineSessionaccepts pinned per-source issueids. A source with an id fetches it directly while the other enabled sources search, so one session can mix id retrieval and search and merge both results.
v4.7.1¶
✨ Added¶
--authtakes an API token directly, as--auth metron:TOKENor--auth comicvine:KEY.- Metron username and password authentication is deprecated and now warns. It will be removed in a future release; generate a token on your metron.cloud account page.
v4.7.0¶
✨ Added¶
- Metron accepts an API token instead of a username and password. Set it with
--auth metron:key=TOKEN, theCOMICBOX_METRON_KEYenvironment variable, or theonline.auth.metron.keyconfig key. The token wins if both are set.
v4.6.1¶
🐛 Fixed¶
- Hand-tagged identifier keys with a type prefix, like
series:178012, now produce correct per-database URLs instead of embedding the prefix in an issue-shaped URL. Affected every source, notably ComicVine, Metron, Grand Comics Database, and League of Comic Geeks. - Hand-tagged ComicVine long codes like
4050-160294are normalized to the bare id with the right URL. source:type:keyidentifier strings in tags no longer drop the id number.- All URNs in a notes field are read as identifiers; previously only the first was.
- Story arcs tagged online from Metron or ComicVine get web URLs.
v4.6.0¶
✨ Added¶
- Metron and ComicVine online tagging record a series’ alternative names (localized and variant titles) as alternate-series reprints, the same way MetronInfo.xml’s
Series/AlternativeNamesare read. Metron alternative names arrive with mokkari 4.3.0; ComicVine’s come from volume aliases. - Online matching recognizes ComicVine volume aliases. A comic filed under a localized or variant series title now matches its canonical volume, both in candidate scoring and in the pre-call volume filter.
v4.5.1¶
🐛 Fixed¶
- ComicInfo.xml’s
BlackAndWhitetag works in both directions. TheYesvalue was missing from its enum, somonochromecould never be read from a comic nor written to one, leaving the field impossible to set or clear. The schema’sUnknownreads as no value. - Enum tags that accept booleans (
BlackAndWhite,Manga) now handleFalseas well asTrue. Writing either previously raised and dropped the tag.
v4.5.0¶
✨ Added¶
- The public write API can now clear fields:
write_metadata()andBulkWriteItemacceptdelete_keys, glom key paths removed from the final metadata before writing (layered onto the config’sgeneral.delete_keys). Empty patch values are pruned on schema load, so previously an update-mode write could never clear an existing tag. The patch may be empty whendelete_keysis non-empty (a pure-clear write). - Extracting a range of PDF pages as PDFs now writes one PDF of the whole range instead of a file per page.
🐛 Fixed¶
- Default PDF to CBZ conversion produced an archive of raw
.ppmpixmaps that comic readers (including comicbox itself) do not recognize as pages, yielding a zero page book — and--delete-origthen removed the working original. Conversion now defaults topixmap_jpegwhole-page renders, which also apply pdf display rotation. --pdf-pages imageextraction and conversion wrote rotated pages as stored — sideways or upside down for scans that rely on/Rotate(or a rotated content-stream placement) for display. Rotated image-dominant pages are now rendered to match the displayed orientation; unrotated pages still extract their original bytes untouched.- Converted pdf pages are now stored uncompressed in the zip like other images; the compression decision previously ran before pages gained their image suffix, so page images were pointlessly deflated.
- The
--pdf-pageshelp lists exactly the values it accepts. It advertisedpdfwhere unsupported and omittedimage_if_dominantandpixmap_jpeg. - A PDF with embedded metadata (e.g. a written ComicInfo.xml) no longer counts that file as an extra page, which inflated the page count and left a stray file when extracting page ranges.
- Extracted PDF pages are named for their contents. Pages extracted as images were given a
.pdfsuffix.
v4.4.0¶
✨ Added¶
- Support the MetronInfo.xml v1.1 schema: new AlternativeNumber and CommunityRating (AverageRating, RatingCount) tags.
- New comicbox
community_ratingfield (average_rating, rating_count). ComicInfo CommunityRating and ComicBookInfo rating now map to it instead ofcritical_rating, which remains but no longer maps to any format. - New comicbox
alternative_issuefield, parsed into name, number and suffix parts likeissue. The Metron API alt_number now maps to it instead of the issue suffix. - Metron online tagging now fills
community_ratingfrom the API’s average_rating and rating_count (mokkari 4.2.0).
v4.3.0¶
✨ Added¶
OnlineSession.rate_limit_status()is no longer a stub: Metron entries now report the account’s live rate-limit budget (burst and daily sustained windows — limit, remaining, and reset epoch) that mokkari 4 tracks fromX-RateLimit-*response headers. The daily limit varies by Metron OpenCollective donor tier, so this is the only place it’s discoverable. Comic Vine still reports{}; simyan exposes no budget to read. Host applications (e.g. Codex) can poll this during a batch run to display live budget.
v4.2.0¶
♻️ Changed¶
- Custom Metron rate limits (per_minute/per_day) in the config are no longer supported and will be ignored in favor of the limits Metron reports for your account — mokkari 4 reads them from API response headers, so higher OpenCollective donor tiers are picked up automatically. You will see a warning if you still have them set. These keys are deprecated for every source and will be removed in a future release.
--jobsis capped at 20 (Metron’s burst limit) when Metron is an active credentialed source for the run; the log explains the cap when it engages.
🐛 Fixed¶
- Rate-limited API responses missing a
Retry-Afterheader now back off on the normal schedule instead of retrying immediately. - Ignored-config warnings (rate-limit overrides,
--api-urlfor Metron) now print once per run instead of once per file.
v4.1.1¶
♻️ Changed¶
- Upgraded Simyan, the ComicVine API library, for more accurate wait-time estimates, fewer hangs, and automatic background cleanup of old cached data.
- Custom ComicVine rate limits (per_second/per_hour) in the config are no longer supported and will be ignored in favor of the official limits. You will see a warning if you still have them set.
v4.1.0¶
✨ Added¶
- Batch API callers can project the API-request count and duration of an online-tag run via
comicbox.online_session.estimate_run(), so the request model lives with the search flow it describes.
v4.0.5¶
♻️ Changed¶
- Metron online tagging now identifies an issue in far fewer API requests — often one or two instead of dozens — so tagging is faster and more reliable. Courtesy of @bpepple. The –effort option no longer applies to Metron due to this improved API.
v4.0.4¶
🐛 Fixed¶
- Online tagging now searches using embedded metadata (e.g. series name) instead of the filename when both are present, so already-tagged comics match more accurately.
- Renaming no longer crashes when metadata contains a path separator (e.g. a slash in the series or title); the separator becomes
_in the name.
v4.0.3¶
✨ Added¶
- Add Sweet Shop kebab case filename format. Courtesy of @bpepple.
🐛 Fixed¶
- Online cover matching now works for PDFs; the cover page is rasterized before perceptual hashing instead of handing raw PDF bytes to the image hasher. Courtesy of @bpepple.
- Security release for dependencies.
v4.0.2¶
🐛 Fixed¶
- CBR files whose RAR entries carry sub-microsecond timestamps no longer break the
ProcessPoolExecutorworker pool.rarfile’snsdatetimeis an unpicklabledatetimesubclass; its mtime is now coerced to a plaindatetimeso results survive transfer back from worker processes.
v4.0.1¶
🐛 Fixed¶
- A source’s web URL no longer clobbers its authoritative
<ID>/GTIN identifier key on read. Metron/Comic Vine ids now survive a write→read round trip in ComicInfo and MetronInfo, so already-tagged comics refresh via their stored id instead of falling through to a full online search. - Metron url parsing no longer captures a trailing slash into the id key (
.../issue/123495/->123495, not123495/). - The
AutoWrittenevent now fires for matches resolved by explicit id or stored id, so it reports a source for every auto-written comic.
v4.0.0 - Online Metadata Tagging¶
💥 Breaking Changes¶
Warning
- Removed the ComicTagger (
comictagger.json) format. - Reorganized config files into nested groups (
general,read,write,convert,online, …). Flat v3 config files must be migrated. - Dry-run is now
-n(was-y). - PDFs no longer decode comicbox metadata hidden in the PDF
keywordsfield;keywordsnow reads as plain tags. Metadata embedded as files inside a PDF still reads normally. - Library API:
Comicbox(...)no longer accepts alogger=argument and never reconfigures the host application’s logging. Host apps keep their own loguru sinks; the CLI configures its own. - Library API: operational errors derive from
comicbox.exceptions.ComicboxError(ArchiveError,MetadataError,ExportError, …) instead of raising bareValueError. Consumers canexcept ComicboxError.
✨ Added¶
- Online metadata tagging from Metron and ComicVine with
--online. Comicbox searches by the comic’s series, issue, and year, ranks the candidates, breaks close calls with cover-image matching, and writes the best match.--match {ask | careful | auto | eager}sets how confidently a match is written without asking;--prompts neverturns prompts into skips for cron and batch runs.--id <db>:<id>tags by an exact upstream id;--series-id <db>:<id>constrains a search to a known series.- Credentials resolve from
--auth,COMICBOX_*environment variables, the config file, or the system keyring. - Online responses are cached on disk (
--cache,--cache-ttl);--efforttrades API calls for matching accuracy.
- Process many files in parallel with
-j N, including batch online tagging. - New public write API:
comicbox.write.write_metadataandbulk_write.
♻️ Changed¶
- Faster archive reads: the 7z and RAR backends load lazily, the page list is derived from cached archive state, and that state is released on
close().
🐛 Fixed¶
- Normalize ComicBookInfo
ratingto the canonical 0-5 scale. - Map Metron price currencies to the correct country.
- Harden credentials against accidental leaks into logs.
write_metadata()accepts the root-wrapped dictto_dict()returns; passing it used to silently write nothing while reporting success.- Metadata added with
add_metadata()after a read is no longer ignored. to_dict()computes pages and page count correctly when one instance dumps multiple formats.- Exported metadata files no longer end with a trailing blank line.
v3.0.3¶
🐛 Fixed¶
- Small crashes with metron credits and comicbox with no path
v3.0.2¶
🧑💻 Developer¶
- Use new comicfn2dict. Parses more comic filename variations.
v3.0.1¶
🧑💻 Developer¶
- Require new comicbox-pdffile that doesn’t corrupt PDF pages. Includes image-dominant page detection (
PDFFile.classify_page,PDFFile.read_image_if_dominant,PDFFile.read_full_pixmap_jpeg) used by browser readers to serve scanned-comic PDF pages as plain<img>.
v3.0.0 - Config Dataclass & Parallel Reads¶
💥 Breaking Changes¶
Warning
- get_config() now returns a ComicboxSettings dataclass, not a Confuse AttrDict. Comicbox constructor now accepts this dataclass instead of an AttrDict
✨ Added¶
- Add Age Rating conversion function comicbox.enums.maps.to_metron_age_rating(value: str | Enum) -> MetronAgeRatingEnum | None
♻️ Changed¶
- Reducing startup time for new instances of comicbox.
- General performance improvements for reading metadata from many files.
- Special multiprocessing and async methods comicbox.process.iter_process_files() and comicbox.process.aread_metadata() for reading large batches of files at once.
Comicbox.get_cover_page(skip_metadata=True)skips metadata parsing for callers that just need the first archive image as a thumbnail. Removes per-call schema instantiation and Union resolution overhead.
🐛 Fixed¶
- Stop emitting
metron.cloud/{genre,location,reprint,role,story,tag}/...URLs for Metron identifiers — those paths 404 because Metron has no public web pages for those types (only API endpoints). The numeric Metron ID is still preserved on the identifier. - Security against suspicious archive paths when extracting pages and metadata to the filesystem.
v2.2.3¶
🧑💻 Developer¶
- Update marshmallow & rich
v2.2.2¶
🧑💻 Developer¶
- Update deepdiff library
v2.2.1¶
🐛 Fixed¶
- Fix reading PDF metadata breaking on datetimes.
- PDF datetime parsing failures are warned about instead of raising an exception and abandoning parsing.
v2.2.0¶
✨ Added¶
- Add
--pdf-page-formatoption to choose how pdf pages are extracted. Replacesto_pixmapin the API. --cbznow works on PDF files. Can create original image CBZs with--pdf-page_format imagefor PDFs with single image pages.--validatevalidates imported and archive metadata against available schemas--importexpands quoted “glob*” paths.
🐛 Fixed¶
- Fix comicbox jsonschema.
🧑💻 Developer¶
- Many more type annotations. Include py.typed sentinel file.
v2.1.1¶
✨ Added¶
- YAML formats now dump unquoted date and datetimes.
🧑💻 Developer¶
- Pin confuse config library at 2.1.0 due to typing issues with 2.2.0
v2.1.0¶
✨ Added¶
- PDFs now write to pdf embedded files instead of overloading the metadata keywords field. Thanks for the idea from @bpepple
- PDFS still read full metadata formats from the keywords field if they exist for backward compatibility.
- Read more flexible datetimes from PDFs
v2.0.6¶
🧑💻 Developer¶
- Python 3.14 support.
v2.0.5¶
🐛 Fixed¶
- A crash when dumping comicbox.json format with only one page.
v2.0.4¶
💥 Breaking Changes¶
Warning
- The confuse library dependency doesn’t support Python 3.14. So neither does comicbox :(
v2.0.3¶
✨ Added¶
- Normalize more original_format names.
🐛 Fixed¶
- ComicInfo.xml coercing Age Rating to wrong value.
🧑💻 Developer¶
- Update xmltodict. Removes much comicbox fix code.
v2.0.2¶
✨ Added¶
- More aliases for comicvine identifier source.
- Make archive comments that aren’t ComicBookInfo JSON log as debug comments more often.
🐛 Fixed¶
- Ensure mtimes from archives are timezone aware.
v2.0.1¶
🐛 Fixed¶
- Resolve circular import if not installed with [pdf] option.
v2.0.0¶
💥 Breaking Changes¶
Warning
- Schema, API, config and CLI changes. See the 2.0 CHANGES document.
✨ Added¶
- File Formats
- CB7 archive read support. Comic archives in 7zip archives.
- Schemas
- Support the MetronInfo.xml v1.0 Schema
- Add AniList, Kitsu, MangaDex, MangaUpdates, MyAnimeList identifier sources.
- ComicInfo.xml gains the
Translatortag - PDF
modDateis now read and written. - URNs as serialized identifiers in
notestag gain an optional tag type attribute in the nss: e.g.urn:comicvine:series:1234 - Comictagger schema supports series_aliases and title_aliases as reprints
- Parse PDF datetime format.
- Many enum fields now accept caseless and slightly fuzzy value lookups that are coerced to correct types for the specified output metadata format.
- For convenience, named or numbered types or collections in the comicbox schema may also be parse by their simple name instead of requiring a complex object.
- Config
--delete actionbecomes--delete-all-tags.--compute-pagesis off by default. Turn on to recompute ComicInfo stylePagesstructures--no-compute-page-countprevents recomputing page_count.--delete_keysnow excludes keys from loading entirely.- Syntax highlighting used on output. Change or remove with
--themeoption.
🐛 Fixed¶
- ComicInfo.xml StoryArcs tag was not loaded.
- Fix proper lowercasing of serialized boolean values in xml attributes.
- ComicBookInfo
issuetag becomes an integer. - Fix ISBN & UPC url detection
- ComicInfo.xml orders tags properly per the xsd.
- Corrected schemaLocation tags for xml formats to be valid.
- ComicBookInfo.json
rating, andtagstags fixed. - Support ComicBookInfo.json
primarycredit tag. - More accurate merging of different metadata sources.
v1.2.3¶
🐛 Fixed¶
- Story arc parsing.
v1.2.2¶
♻️ Changed¶
- Simplify Identifier URL construction for Metron pk ids.
🐛 Fixed¶
- Fix Notes parsing for Comictagger beta Metron origin
v1.2.1¶
✨ Added¶
- Detect .jxl extension (JPEG XL) as a comic page.
🐛 Fixed¶
- Fix ignoring MacOS resource forks in archives.
- xml parsing fixes and
🧑💻 Developer¶
- Better Python 3.13 support.
v1.2.0¶
✨ Added¶
- Add -R –replace_metadata option. Default behavior is to merge keys.
- Add -D –delete_keys option.
- Faster metadata writing. Replace files in zipfiles instead of rewriting the entire archive.
v1.1.10¶
✨ Added¶
- Log common non-ComicBookInfo archive comments with less alarm.
🐛 Fixed¶
- Fix parsing negative issue numbers in filenames.
v1.1.9¶
v1.1.8¶
🧑💻 Developer¶
- Update pycountry
v1.1.7¶
🐛 Fixed¶
- Unknown urls give the path, query and fragment as the nss, not the domain
v1.1.6¶
🐛 Fixed¶
- Ignore dotfiles and macOS resource forks when finding pages.
v1.1.5¶
🐛 Fixed¶
- Fix export of CIX CoverArtist tag.
- Fix tagging Web and other unknown url tags. Accept any url for comicbox identifiers.
v1.1.4¶
🐛 Fixed¶
- Make language and country code parsing more durable
v1.1.3¶
🐛 Fixed¶
- Updated comicfn2dict fixes filename parsing bugs.
v1.1.2¶
🐛 Fixed¶
- Fix crash copying directories between archives.
- Fix crash with leftover temp files.
v1.1.1¶
♻️ Changed¶
- Write MetronInfo.xml & CoMet.xml in TitleCase for beauty.
🐛 Fixed¶
- Write ComicInfo.xml in TitleCase so Comictagger can find it.
- Fix duplicate reprints.
v1.1.0¶
✨ Added¶
- PDFs read all metadata formats from the keywords field.
- PDFs write ComicInfo.xml to keywords field.
- ComicInfo.xml accepts spaces as web field separator.
- Accept numeric types for issues.
- Major improvements to filename parsing and diversity of filename schemas.
🐛 Fixed¶
- Fix
--importoption crash. - Fix parsing tagger and updated_at from notes.
v1.0.0¶
💥 Breaking Changes¶
Warning
- Some are detailed in The 1.0.0 CHANGES document
✨ Added¶
- Comicbox continues to primarily be an API for reading comic metadata but this version contains an enhanced CLI, and more powerful reading, writing, synthesis and exporting of metadata.
- Comicbox now sorts archive filenames case insensitively.
- Comicbox now writes identifiers to the notes field in urn format.
- You should probably read the code in
comicbox.boxfor public facing apis.
♻️ Changed¶
- comicbfn2dict and comicbox-pdffile are now independent packages.
v0.10.2¶
✨ Added¶
- Sophisticated cli metadata parsing. See cli help and README.
- config.metadata_cli holds the new string format.
- Writing xml and json metadata to files is now pretty printed.
🐛 Fixed¶
- Fix some instances where falsey values were not written.
- Fix comicinfo.xml ComicPageInfo typing.
v0.10.1¶
♻️ Changed¶
- Change –metadata cli syntax to use key=[a,b,c] for arrays and key=a for simple values.
v0.10.0¶
💥 Breaking Changes¶
Warning
- Breaking API, CLI & Config changes.
- Python version now >=3.9
✨ Added¶
- Write metadata from the command line.
- Optional PDF support. Install as
comicbox[pdf] - Extract a range of pages from the cli.
v0.9.1¶
🧑💻 Developer¶
- Removed dependence on Python 3.11
v0.9.0¶
✨ Added¶
- StoryArc & StoryArcNumber for ComicInfo.xml exported as
story_arcsdict. Supports Mylar multiple story arcs csv values format.
v0.8.0¶
✨ Added¶
- Add close_fd & check_unrar config options for API use.
- Add ComicArchive.check_unrar_executable() public method.
🔥 Removed¶
- Remove closefd constructor option.
v0.7.1¶
✨ Added¶
- Test for unrar executable for clearer errors.
🔥 Removed¶
- Remove unrar.cffi support.
v0.7.0¶
✨ Added¶
- ComicInfo.xml StoryArcNumber, Review and GTIN now parsed.
- ComicInfo.xml Pages attributes now exposed as snake case for python
🐛 Fixed¶
- Tags from ComicInfo.xml were not parsed
v0.6.7¶
🐛 Fixed¶
- Remove unrar-cffi dependency aciddentally left in during testing
v0.6.6¶
✨ Added¶
- Print filetype cli option. get_archive_type() api method.
- Use unrar.cffi if it’s available.
🧑💻 Developer¶
- Use importlib instead of deprecated pkg_resources.
v0.6.5¶
✨ Added¶
- Demote parser errors to warnings.
v0.6.4¶
✨ Added¶
- –delete-rar option is now –delete-orig
🐛 Fixed¶
- Fix –delete-rar option sometimes deleting original cbzs
v0.6.3¶
🐛 Fixed¶
- Fix rename function renaming files to nothing.
- Fix –dry-run feature for rename.
v0.6.2¶
🐛 Fixed¶
- Enable support for Deflate64.
v0.6.1¶
🐛 Fixed¶
- Fix encoding/decoding crash by replacing uncodable utf-8 characters.
v0.6.0¶
✨ Added¶
- Add –metadata cli action. Injects metadata from cli.
- Warn when no actions performed.
- \== operator for metadata is deep and ignores key order.
- Credits are now sorted.
🐛 Fixed¶
- Log format conversions.
- Don’t add empty credits list metadata.
v0.5.5¶
🐛 Fixed¶
- Fix dest-path cli argument.
- Use defusedxml for XML parsing.
- Fix recursion crash.
- Log exception during recursion and proceed.
v0.5.4¶
🐛 Fixed¶
- Remove uneccissary dependencies
v0.5.3¶
🐛 Fixed¶
- Fix filename extension parsing
- Renamed underscore cli options to use dash instead
- Fixed crash when recompressing directories.
v0.5.2¶
✨ Added¶
- ComicArchive class now has a context manager
- Removed as_pil() methods for pages and covers
v0.5.1¶
✨ Added¶
- Methods for getting covers and pages as PIL Images.
- Lazy metadata and cover pulling. Removes
metadataandcoveroptions. - closefd option leaves archive open after method calls. Close manually with close().
- .cbt Tarfile comic archive support.
v0.5.0¶
✨ Added¶
- Issues numbers are now strings.
- Separate read metadata option from print metadata action.
- Added dry_run option.
- Namespace config under “comicbox” map to allow inclusion in caller configs.
- Allow modnames for local config sources, useful when comicbox is a library.
🐛 Fixed¶
- Trap errors reading user config files.
- Fixed cover extraction to a directory.
- Abort with message if pages asked to extracted to a filee.
- Handle more filename patterns.
v0.4.1 - Yanked¶
Caution
Yanked. Use v0.5.0.
v0.4.0¶
✨ Added¶
- Accept environment variables and config files to configure.
- CLI accepts more than one path as targets for action.
- CLI runs every action on the command line.
- API
get_coverinit variable now set in config ascover - Optional metadata parsing with config.
🐛 Fixed¶
- Fixed some file name patterns
v0.3.4¶
✨ Added¶
- More info in parsing warnings.
- More explicit raw tag titles.
🐛 Fixed¶
- Fixed combining CBI credits and with other format credits.
v0.3.3¶
✨ Added¶
- add colored python logging
v0.3.2¶
♻️ Changed¶
- issue_count type change from decimal to int
v0.3.1¶
✨ Added¶
- Extract decimals from strings for more liberal reading.
🐛 Fixed¶
- Fix synthesizing CBI & CIX credits data.
v0.3.0¶
✨ Added¶
- CIX gained the
community_ratingattribute from CIX 2.0 spec. age_ratingreplacesmaturity_ratingto standardize more on CIXCoverArtistreplacesCoverto standardize more on CIX- Better CIX
Mangaparsing - Better CIX
BlackAndWhiteparsing - Added CIX
AgeRatingvalid schema values, unused. - LGPL 3.0
♻️ Changed¶
- CBI changed
critical_ratingto decimal type from string (in CBI it’s an int).
v0.2.2¶
🧑💻 Developer¶
- Update pycountry to be compatible with codex
v0.2.1¶
🐛 Fixed¶
- Comicbox now raises a specific UnsupportedArchiveTypeError for bad archives
v0.2.0¶
✨ Added¶
- Option for getting the cover image at metadata load time as well.
v0.1.7¶
♻️ Changed¶
- Remove regex dependency in favor of re module
v0.1.6¶
🐛 Fixed¶
- Fixed recursive mode trying to operate on directories
- Fix recompressing crash on cbr -> cbz conversion
- Fixed parsing for three new filename patterns
v0.1.5¶
🐛 Fixed¶
- Fix parsing and writing genre, story_arc, series_groups tags
v0.1.4¶
🐛 Fixed¶
- Make metadata read more robust by catching individual tag exceptions and printing them to stdout
- Protect against null people names for credits
- More robust xml volume parsing
v0.1.3¶
🐛 Fixed¶
- Fix cli crash with bad import
v0.1.2¶
✨ Added¶
- Improve 1/2 Issue number parsing
🐛 Fixed¶
- Fix relative imports
- Fix credit parsing errors
v0.1.1¶
🐛 Fixed¶
- Don’t crash import on bad credits
v0.1.0¶
✨ Added¶
- Initial release