Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 04-09-2020, 12:11 PM   #1
otta56
Junior Member
otta56 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2020
Device: Max Lumi 2
Unhappy Library File Structure for Books Exported to eBook Device

Hello,

The file structure for books on my Windows PC using Calibre 4.13 has a separate folder for each book containing the book itself and a metadata.opf file. When sending books to an attached eBook reader (Android 6.01 OS) all book files are placed into one folder and all metadata is stored in one file (metadata.calibre) in the device root.

Is this the default configuration for file storage?

Some Android eBook applications appear to be expecting separate metadata.opf files per book and a folder structure mirroring the Calibre folder structure on the PC.

Was there a change to the default exported books file structure enforced by changes to an updated version of Calibre at some point?

Regards,

otta56
otta56 is offline   Reply With Quote
Old 04-09-2020, 12:32 PM   #2
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,188
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by otta56 View Post
Hello,

The file structure for books on my Windows PC using Calibre 4.13 has a separate folder for each book containing the book itself and a metadata.opf file. When sending books to an attached eBook reader (Android 6.01 OS) all book files are placed into one folder and all metadata is stored in one file (metadata.calibre) in the device root.

Is this the default configuration for file storage?

Some Android eBook applications appear to be expecting separate metadata.opf files per book and a folder structure mirroring the Calibre folder structure on the PC.

Was there a change to the default exported books file structure enforced by changes to an updated version of Calibre at some point?

Regards,

otta56
Yes that is the default.

See:
https://manual.calibre-ebook.com/gui...send-to-device

Quote:
You can control the file name and folder structure of files sent to the device by setting up a template in Preferences → Import/export → Sending books to devices. Also see The calibre template language.
Using:
Code:
{authors}/{series}/{series_index:0>2} {title}
Will put you ebooks in a folder name for the author then in a subfolder name for the series if any and name the epub file with the series number then book title.

bernie
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2020-04-09 12-28-38.png
Views:	118
Size:	135.7 KB
ID:	178209  
gbm is offline   Reply With Quote
Advert
Old 04-09-2020, 01:24 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,067
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
ALSO note (it is a sticky) That the INTERNAL Library structure is NOT under your control.
theducks is offline   Reply With Quote
Old 04-14-2020, 04:47 PM   #4
otta56
Junior Member
otta56 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2020
Device: Max Lumi 2
Thank you for the advice. I did manage to get the books in separate folders on the device but all of the metadata is still stored in the "metadata.calibre" file at the root of the device rather than in the separate book folders as a "metadata.opf" file.

Is the creation of the "metadata.opf" file controlled by any of the template scripting language? I was not able to find a term or syntax in the "send to device" template.

Last edited by otta56; 04-14-2020 at 04:48 PM. Reason: spelling correction
otta56 is offline   Reply With Quote
Old 04-14-2020, 06:26 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,067
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by otta56 View Post
Thank you for the advice. I did manage to get the books in separate folders on the device but all of the metadata is still stored in the "metadata.calibre" file at the root of the device rather than in the separate book folders as a "metadata.opf" file.

Is the creation of the "metadata.opf" file controlled by any of the template scripting language? I was not able to find a term or syntax in the "send to device" template.
Use Save to disk (set to a folder ON THE DEVICE) if you want the 3 files (option in the STD configure) instead.

Save to device, expects the device to manage books (most modern reading apps do). You can use the same template (a copy) in STD
theducks is offline   Reply With Quote
Advert
Old 04-14-2020, 07:07 PM   #6
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: 46,288
Karma: 169098402
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by otta56 View Post
Thank you for the advice. I did manage to get the books in separate folders on the device but all of the metadata is still stored in the "metadata.calibre" file at the root of the device rather than in the separate book folders as a "metadata.opf" file.

Is the creation of the "metadata.opf" file controlled by any of the template scripting language? I was not able to find a term or syntax in the "send to device" template.
When you send an ebook file to a device, the metadata is embedded in the ebook file. There is no need for the metadata.opf. The ereader's firmware is expected to extract the information from the ebook file and use that information.
DNSB is offline   Reply With Quote
Old 04-15-2020, 01:53 AM   #7
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by otta56 View Post
Thank you for the advice. I did manage to get the books in separate folders on the device but all of the metadata is still stored in the "metadata.calibre" file at the root of the device rather than in the separate book folders as a "metadata.opf" file.

Is the creation of the "metadata.opf" file controlled by any of the template scripting language? I was not able to find a term or syntax in the "send to device" template.
As the others have said, the ereader apps or devices should be getting the metadata from the actual books. The "metadata.opf" is put there by calibre for its own use. It is there to make it quicker for calibre when connecting to the device the next time. I know that KOReader can use "metadata.opf" as the source of the metadata, but, it knows how to parse the file. I don't know of any other app or device that uses it.

And for the record, the "metadata.opf" is in JSON format. The attribute names are names used by calibre. Generally, they match the lookup name used in calibre. The custom columns are a more complex as they include the definition for calibre to load them.
davidfor is offline   Reply With Quote
Old 04-15-2020, 10:29 AM   #8
otta56
Junior Member
otta56 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2020
Device: Max Lumi 2
Thanks for the information. It was very useful. There is one ereader application I use that correctly reads metadata from epub format but not pdf, azw or mobi. I will look KOReader.


Regards to all that responded.
otta56 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Library structure on PC and on Device mfsav2 Library Management 7 12-17-2015 09:22 PM
Save to device file structure MaxSmart8699 Library Management 5 01-30-2013 12:55 PM
Sending to Device file structure Jorge Junior Library Management 3 12-07-2012 04:47 AM
List of books on device/card exported to excel file toby53 Library Management 2 04-26-2011 03:32 PM
Importing meta data from xml file exported from Google "My Library" net-buoy Library Management 0 03-14-2011 06:17 PM


All times are GMT -4. The time now is 04:23 AM.


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