![]() |
#1 |
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
|
Import metadata json along with cbz book
With calibre I have my books that have a json file as a sidecar containing metadata to the relevant book. Both the json file and cbz book have the same name to be easily identified as a pair.
How do I make calibre import the books along with the metadata inside the json files? |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
assuming your metadata is in the comicbookinfo format you can store it as the comment in the cbz file and it will be picked up automatically.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
|
Quote:
I have put the json inside the .cbz file and then imported it into calibre, yet it did not populate the fields, do I have to write a plugin for this? below is the json file in the format you have said it needed to be in that I added to the cbz file that I have imported: { "title": "The Amazing Spider-Man", "#testfield": "test", "tags": ["Venom", "Marvel", "Classic"] } Last edited by yamusing; 12-07-2023 at 06:13 PM. |
|
![]() |
![]() |
![]() |
#4 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,741
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
The one time I played with adding a comment to a .zip file, I used 7-Zip. Basically, open the .zip file with 7-Zip, either use ctrl-Z or Comment from the file menu, copy/paste the comment and close the file. That was a simple text file with instructions on using the command line options for the installer stored in the .zip file.
I'm not sure what the format for a CBZ/CBR comment is so you may have to do some editing to get the right format. |
![]() |
![]() |
![]() |
#5 | |
Enthusiast
![]() Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
|
Quote:
{"title": "The Amazing Spider-Man", "series": "test", "tags": ["Venom", "Marvel", "Classic"]} |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,185
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Your metadata needs to be in the comicbookinfo format
https://code.google.com/archive/p/co...s/Example.wiki |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
adding mass metadata to epub files from json? | jcd1013 | ePub | 5 | 08-26-2020 04:14 PM |
How to bulk import book metadata from another catalog? | Floating Quietly | Library Management | 2 | 01-23-2020 01:10 AM |
Unable to import CBZ files from iCloud. | danielsmith46 | Marvin | 0 | 09-25-2018 05:18 PM |
Import name from filename and all metadata from book content | Giuseppe Chillem | Library Management | 7 | 12-03-2016 07:51 AM |
Re-Import Kindle Book to Calibre w/o Losing Metadata? | enuddleyarbl | Library Management | 3 | 09-03-2013 10:53 AM |