02-04-2019, 12:52 PM | #1 |
Avid Reader
Posts: 56
Karma: 4432
Join Date: Nov 2011
Location: Alberta
Device: Auro H2O, Kobo Glo x 2, Asus Tablet
|
CalibreDB not adding covers
With one of the latest versions (I'm not sure which as I don't update every cycle, but the first time I saw it was with 3.38) calibredb has stopped adding covers specified in .opf files when you add using --one-book-per-directory.
I have a routine that places a PDF in a directory, creates an .opf file for it, creates a .jpg cover then calls calibredb, and the cover is no longer set, instead you get the blue default cover, in previous versions the cover was added correctly. When I add from the front end interface using the the One book per directory option, the cover gets added correctly, but not when using calibredb. To make sure it wasn't something in my .opf file, I just created a new blank library, manually added a pdf, set the author/title and cover for the pdf and saved that book to disk from calibre (S) and moved the resulting book directory to d:\cdbtest. Then removed that book from the library and tried re-adding it using calibredb. Code:
C:>"c:\Program Files\Calibre2\calibredb.exe" --with-library=http://localhost:8080/#Testing add --one-book-per-directory "d:\cdbtest" Added book ids: 2 I ran this test with version 3.39.1 [64bit] Last edited by XrXca; 02-04-2019 at 02:20 PM. Reason: Add Calibre Version |
02-04-2019, 10:47 PM | #2 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Works for me. Zip up this test folder of yours and attach it and I will try to reproduce with that.
|
02-06-2019, 02:38 PM | #3 |
Avid Reader
Posts: 56
Karma: 4432
Join Date: Nov 2011
Location: Alberta
Device: Auro H2O, Kobo Glo x 2, Asus Tablet
|
I've done a bit more testing using clean systems, the change happened between version 3.36 and 3.37.
Two screen captures are included in the zip that show the results. For each version, a clean Windows 10 virtual machine was used, a C:\Calibre\Testing was created, Calibre 64bit was installed using the defaults (except for the library path) The only setting changes was to turn on the "Allow un-authenticated local connections to make changes" option, and start the server. Then the command line was run: Code:
"\Program Files\Calibre2\calibredb.exe" --with-library=http://localhost:8080/#Testing add --one-book-per-directory "c:\Calibre\cdbtest" Interestingly if I do a set_metadata call with the id returned by the add call followed by the opf filename, the cover then gets set correctly, so the issue is just in the add portion. |
02-07-2019, 03:27 AM | #4 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
|
02-08-2019, 01:30 PM | #5 |
Avid Reader
Posts: 56
Karma: 4432
Join Date: Nov 2011
Location: Alberta
Device: Auro H2O, Kobo Glo x 2, Asus Tablet
|
That fixed it, Thank You.
And an odd suggestion, not that it would make much difference to me as the server is always running with the GUI, but would it be useful to show (maybe in the statusbar) an indicator to show that the server is running? And an odd question so I know for the future, I just made a donation, but since I'm not coming from the Rupee or US dollar, which I use makes no difference to me, I used US$ as I know that exchange rate without having to look it up, but do you have a preference of one currency over the other? Last edited by XrXca; 02-08-2019 at 01:53 PM. |
02-09-2019, 03:51 AM | #6 |
creator of calibre
Posts: 43,844
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The color of the connect/share button in the toolbar serves as a visual indication that the server is running. And thanks fo rthe donation, either currency is fine with me.
|
02-09-2019, 05:12 AM | #7 |
null operator (he/him)
Posts: 20,558
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Because I don't have a toolbar I didn't know that - any chance of putting something in the status bar - maybe make your name blink (joke ) ?
|
02-11-2019, 05:34 PM | #8 |
Avid Reader
Posts: 56
Karma: 4432
Join Date: Nov 2011
Location: Alberta
Device: Auro H2O, Kobo Glo x 2, Asus Tablet
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Need help with adding books via calibredb | Benji99 | Calibre | 1 | 03-17-2012 12:31 PM |
Adding covers | reemas | Devices | 1 | 04-27-2011 08:05 PM |
Adding covers | Sweetpea | Calibre | 5 | 12-01-2010 11:41 AM |
Adding Pictures As Covers | dkritso109 | Calibre | 8 | 10-24-2010 12:13 PM |