02-28-2010, 12:45 PM | #1 |
Evangelist
Posts: 456
Karma: 1044878
Join Date: Apr 2009
Device: Kindle Paperwhite 4
|
Import: prioritization of metadata source?
I recently reimported my library using the "Add books from directories (One book per directory) option. I would have expected Calibre to use the "preferred import format order" when choosing which version to grab the metadata from, for ones where I have both LIT files and ePub. But it didn't - ePub should've been prioritized first, but it used the LIT file.
It's not the newest file, either - for another book it correctly chose ePub from among ePub, PDF, PMLZ, and PRC. And it's not alphabetical. So frankly, I'm stumped. Unless it's the order the files were added to the directory...? That could explain the differences, but if so... well, it's silly. |
02-28-2010, 12:56 PM | #2 |
creator of calibre
Posts: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
As far as I recall there is no particular algorithm used for this. If you are importing from a set of directories created by the save to disk button, then the OPF file will be used in preference, otherwise it is random.
|
Advert | |
|
02-28-2010, 03:57 PM | #3 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I looked at this recently. I got the impression that after checking for the opf file, it just asked the OS to provide all the files and processed sequentially whatever the OS provided, so it probably has to do with directory order as the directory tree gets scanned. I'm not sure "random" is technically correct, but effectively, that's what you'd see.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Mass import of books metadata from an ASCII file: HELP NEEDED | LARdT | Calibre | 4 | 07-08-2010 04:05 PM |
0.6.14 - error on import | JohnDoe | Calibre | 7 | 10-01-2009 06:59 AM |
Crashing on import | RichieJarvis | Calibre | 2 | 10-01-2009 12:16 AM |
Import with surname, first name | flinx1 | Calibre | 0 | 05-04-2009 03:24 PM |
Import cover | SUSGOD | Gen3 Developer's Corner | 21 | 01-24-2008 09:05 AM |