09-01-2015, 07:01 AM | #1 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
[GUI Plugin] Embed Comic Metadata
Embed Comic Metadata
A Calibre Plugin to manage comic metadata in calibre. Version History Spoiler:
Special Notes Requires calibre version 3.1.1 or later. Main Features - Can embed the metadata to the zip comment or a ComicInfo.xml file inside the archives - Can read the above metadata formats and import them into calibre - Can write many additional metadata into custom columns Can automatically convert cbr/zip/rar files to cbz - Can embed the calibre cover into cbz comics (experimental) - Can count the number of pages (image files) in a comic - Can get the size of the images in the comic file Usage To embed calibres metadata into the comic archive
To import the comic archive metadata into calibre
Custom Columns You can make custom columns in calibre and populate them with metadata imported with the plugin. In the configuration use the dropdown menu for the columns to select what metadata should be written to what custom column. The custom columns you make in calibre should be of the following type, depending on the metadata stored in them: Comma seperated text, like tags, shown in the tag browser with "Contains names" checked:
Customizing the main menu The menu in the toolbar can be customized to your liking through the options in the configuration. Embed Cover Use with care, just inserts the calibre cover as "00000000_cover" into the comic archive (previously inserted calibre covers are overwritten). Configuration
Older Versions Older versions for calibre 2 can be found on the github page of the plugin: https://github.com/dickloraine/Embed...adata/releases Acknowledgement The handling of the comic metadata is done by using code from ComicTagger Last edited by dickloraine; 04-05-2023 at 03:26 PM. Reason: Version 1.6.6 |
09-06-2015, 01:15 AM | #2 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Thanks for this awesome plugin. I am curious what your current workflow is to get your comics into Calibre? Do you have any plugins that will pull the info down from ComicVine?
|
Advert | |
|
09-06-2015, 08:25 AM | #3 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Currently I still use ComicTagger and then import to calibre (calibre imports metadata stored in the zip comment. To be compatible with the comictagger metadata you need to change the options in calibres comic metadata reader plugin to "issue"). But I make sometimes changes in calibre or add webcomics or add the metadata manually (which is a pain in comictagger). In these cases I needed a method to save the metadata in calibre.
There was a comicvine plugin for calibre: https://www.mobileread.com/forums/sho...ght=comic+vine There is a fix somewhere in the thread, but I didn't test it yet. Maybe I change to that, if it works. But comictagger has some advantages, such as comparing the cover to get acurate metadata. Last edited by dickloraine; 09-06-2015 at 08:28 AM. |
09-06-2015, 11:29 AM | #4 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Very cool. Thanks again for the plugin and the info about your workflow. Keep up the good work.
|
09-16-2015, 03:07 AM | #5 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Really enjoying this plugin. Thanks again.
Any thoughts on writing a plugin that will read ComicInfo.xml files that reside in the book directory? |
Advert | |
|
09-16-2015, 07:47 AM | #6 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Do you mean a plugin that reads the metadata from the comicinfo.xml instead/in addition of the zip comment? Or something else?
It would be easy to add that as an option to the plugin, I think. Better of course would be a seperate plugin, that does this, when a comic is added. Since I first use comictagger, my files have always both, but I can see, that it could be usefull. |
09-16-2015, 12:24 PM | #7 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Yes, the thought would be to have either one that reads comicinfo.xml when adding the files, and/or the option in this plugin to update the data from either the zip comment or comicinfo.xml. That way if I update the data outside Calibre, it would be easy to pull in those updates thru your plugin.
I would love to be able to utilize the additional items Comicrack includes such as Penciller, Writer, Cover Artist, etc. either to custom fields or just concatenate them all into the Comments. So from this point of view, be super cool to have a GUI that would show all fields I have available in Calibre, and then a way to map the nodes of the xml to each of these fields. With additional ability to add text and nodes together. So I could build a title from <series>Army of Darkness</series> + " #" + <seriesNumber>1</seriesNumber> + " - " + <title>Release the Kraken</title> which would then load Army of Darkness #1 - Release the Kraken to the Title field in Calibre. Just trying to think out loud and save me from having to retag all my comics down the road. I would like to figure out a way to do right the first time. I can do some of this thru the Importlist plugin, but it isn't really built for this and can only do one file manually at a time, so it is very time consuming. And it doesn't have the ability to add nodes with text to build custom results which I believe will be the killer feature. Here is the post I added to the Importlist plugin topic: Go there Last edited by DreamStatic; 09-16-2015 at 12:30 PM. |
09-16-2015, 07:01 PM | #8 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
I have begun to implement reading metadata from the comic file, but only a first workflow. I think I can include this relatively easy.
Expanding that to read more than the standart calibre metadata would be possible. What needed to be done in addition is making an option menu, where the user could enter the names of his custom columns for that extra infos and just expanding the function that maps comictagger metadata to calibre metadata with the additional fields. I don't know if I myself will do this. I haven't worked with custom columns in the code yet and it would be some work to write the gui and map all the additional infos. The project is on github (the version there is a little bit different to the live plugin, since I have tinkered with it since the last real version). I develop the read feature currently in the " read_cix_metadata" branch. |
09-16-2015, 08:21 PM | #9 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Wow!! I appreciate you taking the time to implement this idea. I tried to download the project from github to give it a go but ran into an error.
calibre, version 2.38.0 ERROR: Unhandled exception: <b>InvalidPlugin</b>:The plugin in u'/Path/to/Plugin/EmbedComicMetadata-read_cix_metadata.zip' is invalid. It does not contain a top-level __init__.py file Sorry if I jumped the gun and it isn't ready just yet. Thanks again. |
09-16-2015, 10:35 PM | #10 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
It is not ready yet
The newest version should at least run, but has only some fields ready to test. If you download the zip from the development branch, github seems to put the content into a folder inside the zip file. Just unzip the folder and zip only the content. |
09-16-2015, 10:39 PM | #11 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Cool, no worries. I will wait until it is ready for testing. Thanks again. Just jumping the gun due to my excitement.
|
09-17-2015, 11:49 AM | #12 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
Okay, the code in the "read_cix_metadata" branch should now work. It needs some testing and reading from cbr is disabled for now, since I don't have a file to test it (but converting it on the fly to cbz of course works).
Before I include the changes here, it will need a bit of testing and I think I simplify the dropdown ui (with an option to have all commands). So it will take a couple of days (depending on how much time I find). |
09-17-2015, 01:56 PM | #13 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Wow you are pretty awesome!! At first I thought it wasn't working since Calibre doesn't auto update until you click to another row. VERY IMPRESSED with how quickly you implemented this. You code for a living?
|
09-18-2015, 09:04 AM | #14 |
Guru
Posts: 631
Karma: 7544080
Join Date: Apr 2013
Location: Berlin
Device: PRS 350, Kobo Aura
|
No, I don't. This plugin is not that difficult to write. I use code from comictagger for transforming the metadata and calibre provides functions for most of the other needs. So it is mostly just: If this do that.
|
09-20-2015, 05:14 PM | #15 |
Enthusiast
Posts: 31
Karma: 10
Join Date: Aug 2014
Device: iphone, ipad, computer
|
Liking where you are headed with this branch. Nice work. You decided if you are going to implement Custom Column mapping? i.e. Cover Artist to custom column Cover Artist, Imprint to custom column Imprint.
I noticed the Count Pages and Import List plugins utilize the Custom Columns, maybe they will be of help if you decide to implement this mapping feature. I looked at them to see if I could decipher custom columns, but I haven't had any luck yet. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Zotero Metadata Importer | DaltonST | Plugins | 291 | 08-07-2023 01:38 PM |
[GUI Plugin] Comicalibre - Comic Vine metadata processor | Pewsplosions | Plugins | 1 | 12-18-2022 10:16 AM |
[GUI Plugin] Clean Metadata | WS64 | Plugins | 28 | 01-06-2022 09:09 PM |
Call fetch/download metadata from GUI plugin | BeckyEbook | Development | 0 | 02-03-2017 07:51 PM |
Getting custom metadata field in GUI plugin | SauliusP. | Development | 7 | 02-11-2012 02:31 AM |