View Single Post
Old 09-01-2015, 06:01 AM   #1
dickloraine
Guru
dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.dickloraine ought to be getting tired of karma fortunes by now.
 
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:

Version 1.6.6 - 05.04.2023
Added support for tags in comicinfo.xml

Version 1.65 - 23.02.2023
Fixed not reading publication day from metadata

Version 1.64 - 25.09.2022
Fixed a bug in converting cbr to cbz if cbr contains folders

Version 1.63 - 22.09.2022
Fixed a bug in converting cbr to cbz

Version 1.62 - 26.08.2022
Switched to standard python zipfile utility. Fixes bug with accented characters in filenames inside of zipfiles

Version 1.61 - 13.03.2020
Fixed issue if cbr with comments are converted

Version 1.60 - 01.02.2020
Added custom manga column

Version 1.51 - 07.10.2020
Fixed bug during automatic conversion to cbz

Version 1.50 - 15.09.2020
Added calibre 5 compatibility

Version 1.40 - 17.01.2018
Added the ability to read picture size in mega pixels
fixed a bug for non numerical volume values

Version 1.38 - 01.10.2017
Added some more image extensions for counting pages

Version 1.37 - 25.06.2017
Updated for calibre 3.1.1. This calibre version is now also the new minimum Version

Version 1.36 - 15.05.2017
The icon is now themeable

Version 1.35 - 19.04.2017
Added scrollbars to the config menu

Version 1.34 - 12.02.2017
Added support for the page count column
Added the ability to count the pages of a comic by counting the number of image files in it

Version 1.33 - 31.01.2017
Added Number of issues and comic vine link columns
Converting rar and zip to cbz

Version 1.32 - 07.10.2016
Using safe_replace to embed metadata to prevent corruption of cbz files. This makes embedding metadata slower, but safer.

Version 1.31 - 07.04.2016
Fixed a bug if embedding in a cbz file without metadata

Version 1.3 - 06.04.2016
Added options to customize the toolbar menu
Added the possibility of translations
German translation
An option to embed the calibre cover into a comic
Major internal refactoring
Various bug fixes

Version 1.2 - 019.09.2015
Major update:
Allow importing and embedding to custom columns.

Version 1.1.1 - 019.09.2015
Fixed issue with last version.

Version 1.1.1 - 019.09.2015
Fixed importing of unicode fractionals as issue number

Version 1.1 - 019.09.2015
Added the ability to import metadata from comic archives into calibre

Version 1.0.1 - 01.09.2015
Setting the language metadata is now handled by calibres localization functions

Version 1.0 - 01.09.2015
Initial release


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
  • Select the comics that should be updated in the library.
  • Click the addon EmbedComicMetadata icon in your toolbar
  • (You can select a specific action or open the configuration bei clicking on the small arrow on the icon and selecting the desired option)

To import the comic archive metadata into calibre
  • Select the comics that should be updated in the library.
  • Click the small arrow on the addon EmbedComicMetadata icon in your toolbar
  • Click on "Import Metadata from the comic archive 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:
  • Penciller, Inker, Colorist, Letterer, Cover Artist, Editor
Comma seperated text, like tags, shown in the tag browser:
  • Characters, Teams, Locations, Genre
Text, column shown in the tag browser:
  • Story Arc, Volume, Number of Issues
Integer:
  • Volume, Number of Issues
Series like:
  • Story Arc
Text, but with a fixed set of permitted values:
  • Manga:
    • Values: No,Yes,YesAndRightToLeft
    • Default Value: No
Comment:
  • Comic Vine Link

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
  • 'Write metadata in zip comment': This format is used by calibre, if you import comic files and by ComicbookLovers (default: on)
  • 'Write metadata in ComicInfo.xml': This format is used by ComicRack and some other comic readers (default: on)
  • 'Auto convert cbr to cbz': If a comic has only the cbr format, convert it to store the metadata (default: on)
  • 'Also convert rar and zip to cbz': Expand the behaviour for cbr to rars and zips (default: off)
  • 'Auto convert while importing to calibre': As above, but even when importing metadata into calibre (default: off)
  • 'Delete cbr after conversion': Deletes the cbr format after the conversion (default: off)
  • 'Swap names to "LN, FN" when importing metadata': Does just what it says
  • 'Auto count pages if importing': Count pages automatically if importing metadata into calibre (default: off)
  • 'Main Button Action': You can set, what action should be performed if the big toolbar button is pressed. Needs a calibre restart (default: Embed metadata)
  • 'Menu Buttons': The dropdown menu on the icon in the toolbar can be custimized to your liking through these options

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
Attached Files
File Type: zip EmbedComicMetadata.zip (42.5 KB, 18888 views)

Last edited by dickloraine; 04-05-2023 at 02:26 PM. Reason: Version 1.6.6
dickloraine is offline   Reply With Quote