06-16-2011, 03:54 PM | #1 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2011
Device: none
|
Calibre will not add books correctly
I made the mistake of getting Calibre and loading 1000's of books without realizing what I was doing. Consequently, MANY book came in with author in title field and vice versa ... series+author in title field, etc.
I saved my entire library to disk with the intention of cleaning up the folders and field names so that the preferences would work and distribute information to the correct fields in Calibre. I got a file/folder bulk renamer to help with the job. All well and good. Tested a couple Calibre saved folders (and files) with renamer - OK Tried to add to my Calibre library using Add Books, Option 2. No Good! e.g. G:\Test Rename\Isaac Asimov\Isaac Asimov\Isaac Asimov - Black Widowers 01 - Tales of the Black Widowers.lit used preferences of: ^(?P<author>((?!\s-\s).)+)\s-\s(??:\[\s*)?(?P<series>.+)\s(?P<series_index>[\d\.]+)(?:\s*\])?\s-\s)?(?P<title>[^(]+)(?:\(.*\))? Put file name in test and everything seemed to distribute correctly Tales... in Title Isaac... in Author Black... in Series 1.0 in Series Index However, back on the main screen, Asimov, Isaac - Black Widowers 01 - Tales of the Black Widowers show up as Title; Isaac Asimov - Black Widowers 01 as Author Nothing in Series! I have it set to NOT read metadata. What am I doing wrong? Help btw, I would have included screen images, but I cannot seem to get get my PrtScrn to work. David |
06-16-2011, 04:23 PM | #2 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
06-16-2011, 04:35 PM | #3 |
Junior Member
Posts: 5
Karma: 10
Join Date: Jun 2011
Device: none
|
Yes I do. As a matter of fact, I just discovered this a couple minutes prior to your reply.
So, just delete all the .opf file in the thousands of directories and it should work correctly? I just tried it with the book in question and it did seem to work. Is there a way in Calibre to tell it to ignore the .opf files? Thanks for your help. David |
06-16-2011, 04:49 PM | #4 | |
Quack! Quack!
Posts: 92
Karma: 9176
Join Date: Apr 2011
Location: Florida
Device: kindle 3 & sony daily prs950sc
|
Quote:
Another thing you might check is down on the bottom left the pull down for manage authors. make sure your using sort by authors and not author_sort. and in the tweeks section of preferences check your author sort name preferences: I import my directly as spelled out and use author_sort_copy_method = 'copy' Also I plugged your regex into calibre to test and it comes up invalid... use this: Removes Brackets in series - leaves anything in brackets in title ^(?P<author>[^-]+)(\s*-\s*(\[?(?P<series>[^-0-9]+)\s*(?P<series_index>[0-9.]+)?]?)?)?.*?-\s*(?P<title>[^-]+) or Removes brackets around series - deletes anything in brackets in title ^(?P<author>[^-]+)(\s*-\s*(\[?(?P<series>[^-0-9]+)\s*(?P<series_index>[0-9.]+)?]?)?)?.*?-\s*(?P<title>[^\]{[()]+\w) some other regex can be found here: https://www.mobileread.com/forums/sho...d.php?t=138792 |
|
06-17-2011, 09:15 AM | #5 | |||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
If you choose that option and an .opf file exists, the metadata in filename or internally stored is overridden by the contents of the .opf file. (IIRC, it's actually a bit weird, as the metadata from filename/internal is used to warn you about duplicates, while the opf metadata is what is actually used). I don't believe the .opf override applies to drag/drop book adds. The OP said: Quote:
Quote:
|
|||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to add books to Calibre? | tenco | Library Management | 3 | 03-04-2011 06:48 PM |
Automatically Add Books to Calibre from Directory | pjd6896 | Calibre | 0 | 12-02-2010 09:15 PM |
Add books to Calibre | Pauly454 | Calibre | 6 | 12-30-2009 01:37 AM |
Calibre won't correctly convert books. | ereaderuser | Calibre | 2 | 12-01-2009 07:51 AM |
Calibre won't add books | lilpretender | Calibre | 13 | 08-06-2009 12:57 AM |