![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2011
Device: Kindle for iPod
|
![]()
Hello!
I recently inherited thousands of epub files (just under 10K) from a fanfiction site has now closed down and added them all to a new calibre library today. I only noticed afterwards that the epubs have no metadata attached to them and that there's a json file in the folder which contains all of the metadata. How do I merge the metadata.json with the epubs? The thought of adding it back by hand makes me want to gnash teeth. I use a Mac, OS 10.15.5, so if I do need an additional program, it would be helpful if it is Mac based. |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,792
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
This may not be of much help to you but on the one occasion where I imported metadata from a json file for about 100 books, I converted the json file to csv, massaged the columns in Microsoft Excel (any spreadsheet program should work) and then used calibre's import list plugin to copy the metadata to the book entries. A bit of a PITA but it saved me a few hours.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,188
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use the ebook-meta command line program from calibre, with a script to read the json metadata and set it in the files. https://manual.calibre-ebook.com/gen...cli-index.html
|
![]() |
![]() |
![]() |
#4 | |
Member
![]() Posts: 19
Karma: 10
Join Date: Apr 2015
Device: Kobo Aura H2O 2ed
|
Quote:
![]() ![]() Thanks! ![]() |
|
![]() |
![]() |
![]() |
#5 | |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Jan 2011
Device: Kindle for iPod
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,792
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Good to hear it worked for you. For me, a few minutes of massaging the data was a lot less effort than manually entering the metadata.
|
![]() |
![]() |
![]() |
Tags |
calibre, epub, json |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
PDF Files; Metadata & File Names; Adding Physical Book Info | Thunder_Struck | Calibre | 4 | 02-13-2019 11:16 PM |
Question about metadata in epub files vs opf files | machstem | Calibre | 3 | 06-19-2017 12:43 PM |
How do I move JSON files? | Rellwood | Calibre | 2 | 10-20-2015 12:26 AM |
what are conflicted copy .db and .json files? | mlevin77 | Library Management | 9 | 07-25-2014 12:28 PM |
Adding metadata jacket to epub problem | fxtrtr | Library Management | 1 | 07-08-2012 11:01 AM |