comicbox.formats.base.transforms.identifiers ¶
Identifier Fields.
identifier_from_url(url_str) ¶
Parse an identifier out of a url comicbox recognizes.
Returns an empty result for a url from a database comicbox doesn’t know. Such a url is still kept verbatim in urls; inventing an identifier source from its hostname only produced keys nothing could look up.
Source code in comicbox/formats/base/transforms/identifiers.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
identifier_transform_from_cb(identifier_tag) ¶
Transform comicbox identifiers to one identifier tag.
For a format like CoMet that allows a single identifier, the best ranked source wins.
Source code in comicbox/formats/base/transforms/identifiers.py
90 91 92 93 94 95 96 97 98 99 100 | |
identifiers_to_cb(native_identifiers, naked_id_source) ¶
Parse identifier struct from a string or sequence.
Source code in comicbox/formats/base/transforms/identifiers.py
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | |
identifiers_transform_to_cb(identifiers_tag, naked_id_source) ¶
Transform identifier tags to comicbox identifiers.
Source code in comicbox/formats/base/transforms/identifiers.py
60 61 62 63 64 65 66 67 68 69 70 71 | |
urls_to_cb(native_urls) ¶
Collect url tags verbatim, in order, without duplicates.
Source code in comicbox/formats/base/transforms/identifiers.py
126 127 128 129 130 131 132 133 134 135 | |
urls_transform_from_cb(urls_tag) ¶
Transform comicbox urls to url tags.
Source code in comicbox/formats/base/transforms/identifiers.py
143 144 145 | |
urls_transform_to_cb(urls_tag) ¶
Transform url tags to comicbox urls.
Source code in comicbox/formats/base/transforms/identifiers.py
138 139 140 | |