comicbox.readinglists.arcs ¶
Arc tags and reading lists.
A comic’s arcs tag, {name: {number}}, is a per-comic view of list membership. These functions go both ways: the entry that refers to a comic, the lists a set of comics’ arc tags describe, and the patch that tags one comic as part of a list.
arc_patch(list_name, number=None) ¶
Build the patch that tags one comic as part of a list.
For write_metadata with merge_mode="additive", so the patch adds the arc and keeps the comic’s others; under update it would replace them.
Source code in comicbox/readinglists/arcs.py
192 193 194 195 196 197 198 199 200 201 | |
entry_from_comic(metadata) ¶
Build the entry that refers to a comic.
Takes {"comicbox": {...}} or the inner mapping, which is what a ReadResult’s tags holds. Keeps the series name, start year and ids, the volume number, the issue, the cover date and year, and the issue-level ids.
Source code in comicbox/readinglists/arcs.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | |
reading_lists_from_comics(comics) ¶
Build one list per arc that a set of comics is tagged with.
Arc names group case-insensitively and keep the first spelling seen. Copies of one issue are one entry. Entries go by arc number, then cover date, series and issue. Lists come back sorted by name.
Source code in comicbox/readinglists/arcs.py
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | |