Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 12-06-2023, 06:03 PM   #1
yamusing
Enthusiast
yamusing began at the beginning.
 
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?
yamusing is offline   Reply With Quote
Old 12-06-2023, 09:40 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Advert
Old 12-07-2023, 06:07 PM   #3
yamusing
Enthusiast
yamusing began at the beginning.
 
Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
Quote:
Originally Posted by kovidgoyal View Post
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.
It doesn't seem to work when importing into calibre, how do I do it right?
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.
yamusing is offline   Reply With Quote
Old 12-07-2023, 06:14 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 12-07-2023, 06:50 PM   #5
yamusing
Enthusiast
yamusing began at the beginning.
 
Posts: 47
Karma: 10
Join Date: Jul 2019
Device: none
Quote:
Originally Posted by DNSB View Post
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.
I have tried it in a zip format with the below in the comment zip as you have instructed then imported but no metadata has been imported into the metadata fields.

{"title": "The Amazing Spider-Man", "series": "test", "tags": ["Venom", "Marvel", "Classic"]}
yamusing is offline   Reply With Quote
Advert
Old 12-07-2023, 09:12 PM   #6
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 05:44 PM.


MobileRead.com is a privately owned, operated and funded community.