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 01-04-2019, 10:31 PM   #1
PRiSMiWi
Junior Member
PRiSMiWi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2019
Device: BQ Cervantes 4
Question Regenerate metadata from opf files

Hello,

I’ve just got a large base of free epubs in Spanish, they were interned to work with calibre, but seems the author deleted/forgot to upload the metadata.db file.

The good thing is that everything is well structured with folders following this pattern:

Author/Book/Files - where files are ALWAYS three files: ePub, OPF, and cover.

I tried to add the books with the add book option, but it took about 40 minutes to add 300 books. Is there any option to do not process books and just take its opf, cover and ePub to include it in the metadata file?

Cheers
PRiSMiWi is offline   Reply With Quote
Old 01-04-2019, 11:00 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: 33,920
Karma: 10254168
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
no you have to add them.
kovidgoyal is offline   Reply With Quote
Old 01-05-2019, 01:53 AM   #3
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 11,858
Karma: 10633600
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@PRiSMiWi - I've reconstructed libraries with missing databases with this command

Code:
calibredb restore_database --library-path="path to library like folder" -r
See calibredb for restrictions, and warnings.

BR
BetterRed is offline   Reply With Quote
Old 01-05-2019, 05:00 AM   #4
PRiSMiWi
Junior Member
PRiSMiWi began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2019
Device: BQ Cervantes 4
Quote:
Originally Posted by BetterRed View Post
@PRiSMiWi - I've reconstructed libraries with missing databases with this command

Code:
calibredb restore_database --library-path="path to library like folder" -r
See calibredb for restrictions, and warnings.

BR
How long it takes? Same as adding books again?

Thank you
PRiSMiWi is offline   Reply With Quote
Old 01-05-2019, 06:19 AM   #5
BetterRed
null operator
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 11,858
Karma: 10633600
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Don't think so, I only ever did it this way. Far as I know it only reads the opf files and writes the database tables, it'll take longer if the books have a lot of custom columns. Adding also reads the format files to copy them into the target library, and depending on your adding options it might even open the format files or do a conversion.

Do a test on say 50 books

BR
BetterRed is offline   Reply With Quote
Old 01-05-2019, 06:54 AM   #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: 33,920
Karma: 10254168
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by PRiSMiWi View Post
How long it takes? Same as adding books again?

Thank you
It should be a bit faster, because it does not read metadata from the book files, only the OPF, but not a lot faster.
kovidgoyal 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
Missing metadata.opf Files After Move william888 Library Management 1 03-11-2018 08:07 AM
Question about metadata in epub files vs opf files machstem Calibre 3 06-19-2017 01:43 PM
opf files and managing metadata please55 Calibre 11 12-07-2014 01:41 AM
metadata & OPF files u238110 Conversion 9 12-03-2014 12:28 PM
calibre - Not using existing metadata from *.opf files when Add books rolandt99 Library Management 16 03-03-2014 03:45 PM


All times are GMT -4. The time now is 06:26 AM.


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