Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-15-2021, 01:25 PM   #1
hrundivbakshi
Junior Member
hrundivbakshi began at the beginning.
 
Posts: 1
Karma: 10
Join Date: May 2021
Device: iPad
Add addition format and auto-merge to existing books!?

I manually converted all books of my Calibre library which are other than epub to epub format (to have an common format which all my devices support). II did this via script and Calibre's commandline executable 'ebook-convert'.

Now I want to add the new variants to the existing book records of my Calibre library. Each converted files resides in the same folders as the source file.

Preferences for 'Adding books' are set to:
  • Read metadata from file name (rather than file contents)
  • Regex to extract metadata is default: (?P<title>.+) - (?P<author>[^_]+)
  • Auto-merge added books if the already exist: Ignore duplicate incoming formats
But in most cases new records are created (and added books' files are copied to a new folder). I guess this is because Calibre cannot match the shortened title/author strings from file names to it's metadata records.

Any ideas?
hrundivbakshi is offline   Reply With Quote
Old 05-15-2021, 01:50 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,443
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
You should have added the new formats to the book records when you did the conversion using calibredb add_format. That would avoid the book matching problem and guarantee that the new epub is added to the correct book record.

Are you saying that the new epubs are already stored in the calibre library directory structure? I don't know what would happen if you did an add_format of a file that already exists in the correct directory. The add_format command could easily fail by trying to copy the file onto itself. You could try it with one to see what happens. EDIT: or you could move the format out of the calibre file structure then use calibredb to move it back.

Personally I would clean the library then redo the conversions, adding the formats one by one as they are created using add_format. If the new epubs are in the calibre library structure then you can easily remove them using Library maintenance / Check library. EDIT 2: Or just do it en mass in the GUI, avoiding all the scripts.

Last edited by chaley; 05-15-2021 at 02:27 PM.
chaley is offline   Reply With Quote
Advert
Old 05-15-2021, 05:39 PM   #3
BetterRed
null operator (he/him)
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: 21,717
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
From the GUI, I would run Library->Maintenance->Check library, that will find the "Extra book formats"; from there I would use the mark and delete options to remove the 'extra' EPUBs.

I would then redo the conversions in the GUI, i.e. the library manager interface.

Which is @chaley's last suggestion - I think

BR

Last edited by BetterRed; 05-15-2021 at 05:43 PM.
BetterRed is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Auto-Merge Duplicates when (auto) Adding Books brady601 Library Management 4 02-13-2023 09:29 AM
Auto-merge added books if they already exist (works?) dunhill Library Management 1 06-25-2020 11:03 PM
Vanishing auto add books during import, books left behind in auto add folder jataadroid Library Management 9 01-14-2018 11:43 PM
How to add more ignore filteypes in Automatic Addition of Books? stanmarsh Library Management 2 07-24-2015 09:14 AM
Merge existing formats into New records when adding new books camelx Calibre 28 05-24-2015 01:04 PM


All times are GMT -4. The time now is 06:00 PM.


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