![]() |
#31 | ||
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
![]() Quote:
I expect a check for whether per book saved settings exist would be incredibly easy for DaltonST to add to JobSpy (e.g. what I did on post #24 using DaltonST's MultiColumnSearch plugin). Way simpler compared to Tag Scrubber. I exported the data blob and it's just simple JSON. Alas, the order of conversion options isn't fixed/sorted so if it's to be compared to the conversion settings in Calibre Preferences, need to add extra code for that. |
||
![]() |
![]() |
![]() |
#32 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@ilovejedd - I would think for most users just knowing which books have specific stored conversion settings would suffice.
BR |
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
hopeless n00b
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,110
Karma: 19597086
Join Date: Jan 2009
Location: in the middle of nowhere
Device: PW4, PW3, Libra H2O, iPad 10.5, iPad 11, iPad 12.9
|
Quote:
Given Calibre saves conversion options with every single conversion, a query like the above wouldn't actually help determine if one is using modified/book-specific settings like @Divingduck wants. I use EPUB on Android/iOS and MOBI (dual) on my Kindle so all my books have saved conversion settings. Or they would have if I didn't clear those out via bulk metadata edit quite regularly. (I try to clear saved settings immediately after conversion but sometimes I forget.) |
|
![]() |
![]() |
![]() |
#34 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
yes the conversion_options table is where it is stored, and yes it is always stored there, regardless of whether any option is changed or not.
If you want to see which books have different options from the current defaults, you would need to write code to compare the options on a book by book basis. It should not be too hard, the options are stored as simple JSON dictionaries. You will need to exclude the metadata options such as cover, title, etc. |
![]() |
![]() |
![]() |
#35 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Quote:
Need to think about this a little more. I usually try to avoid manipulating the database outside from calibre as I can not be sure that I recognize all dependencies in the database. I don't want to loos bits over the time and don't recognize it until it is too late. The amount on entries in this table is a little bit bigger and additionally I don't want to loose the effort I spend for a lot of fine tuned conversion for individual books. I only want to know which books have a "individual conversion" where I need to take care about. I start some time last year with an additional column where I put this Information in manually after I recognize, that this can help me to find already existing solutions for other books in work (... as soon as I remember it ... ![]() |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
|
Quote:
|
|
![]() |
![]() |
![]() |
#37 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,725
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
A search in stackoverflow etc will find a number of python JSON compare modules.
BR |
![]() |
![]() |
![]() |
#38 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,353
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
well to get you started, here is how you can load both global and bookspecific options, run it using calibre-debug:
Code:
from calibre.library import db db = db() from calibre.ebooks.conversion.config import load_defaults, load_specifics specifics = load_specifics(db, book_id) page_defaults = load_defaults('page_setup') |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Saved conversion settings... | paulfiera | Calibre | 4 | 09-22-2013 12:29 PM |
Used saved conversion settings... | paulfiera | Calibre | 0 | 05-24-2012 09:04 AM |
epub "padding left" to mobi "block quote" conversion issue | 1611mac | Conversion | 3 | 01-11-2012 02:10 PM |
"Settings," then "311" - Int'l Kindle searches for wireless providers in the area | Dr. Drib | Amazon Kindle | 2 | 08-28-2011 10:27 AM |
Firmware Update No "Update your Kindle" option in "Settings" | shimoncellos | Amazon Kindle | 4 | 05-26-2010 05:37 PM |