Repository navigation
Genre metadata in library #932
|
Although Calibre doesn’t seem to support a “genre” metadata field, all my EPUBs display various different, inconsistently used, genre tags in Crossink’s library. Does anyone know where Crossink is pulling that metadata from and to how to edit it in Calibre? As far as I can tell, Calibre doesn’t have the option to display a “genre” tag in your library or in the metadata editor. None of my EPUBs display their Calibre tags in Crossink’s library and some of the genres Crossink is displaying do not appear anywhere in my Calibre library. |
Replies: 1 comment 2 replies
|
Hi @paper-trees, CrossInk takes the genre from the EPUB file itself: the first On the Calibre side, When Calibre writes your tags, it removes all existing So: tag the books, select them, Embed metadata, then copy them to the device again. CrossInk re-reads a book when its size or modified time changes, so the library picks up the new genre on the next scan. If a book has several tags, only the first one shows as the genre. Hope that helps! |
Hi @paper-trees,
CrossInk takes the genre from the EPUB file itself: the first
<dc:subject>in the book'scontent.opf(lib/Epub/Epub/parsers/ContentOpfParser.cpp, "keep the first one as the Library genre"). The random ones you see are subjects the publisher put in the file.On the Calibre side,
<dc:subject>is the Tags field. The catch is that editing metadata in Calibre only changes Calibre's database, not the EPUB. The tags only end up in the file when Calibre writes metadata into it: when it sends the book to a device, or when you use Edit metadata ▸ "Embed metadata into book files". If you copy the files straight out of the Calibre library folder you get whatever was in the original d…