Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 12-22-2021, 09:58 AM   #1591
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 23,225
Karma: 41975128
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by capink View Post
It does not make sense for plugins to create custom column(s), since you need to restart to be able to use the new custom column(s).
You can easily trigger the restart, and, from memory, the Annotations plugin does. But, I think for me it has been a little bit of laziness as the custom columns only need to be made once, and it would add extra code to write and maintain. I'll probably do it some day when I get a bit bored, as I'm actually a bit tired of how many people don't actually read the instructions/help and don't understand the need to create the columns, can't find it or mess it up. Though maybe the starting point is to add something to calibre for the plugin to call. Passing in suggested names and the data type would help to get them created properly.
davidfor is offline   Reply With Quote
Old 12-22-2021, 10:14 AM   #1592
chaley
Grumpy old git
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.
 
chaley's Avatar
 
Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
Quote:
Originally Posted by davidfor View Post
Though maybe the starting point is to add something to calibre for the plugin to call. Passing in suggested names and the data type would help to get them created properly.
db.new_api.backend.create_custom_column()

The method is in db.backend.py, line 998 in current source. Reading the code, it throws an SQL exception if the lookup key is not unique. It throws VALUE_ERROR for some error conditions such as an invalid type or key. It modifies the custom column description table so that the column will appear next time calibre restarts.
chaley is offline   Reply With Quote
Old 12-22-2021, 09:19 PM   #1593
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 23,225
Karma: 41975128
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by chaley View Post
db.new_api.backend.create_custom_column()

The method is in db.backend.py, line 998 in current source. Reading the code, it throws an SQL exception if the lookup key is not unique. It throws VALUE_ERROR for some error conditions such as an invalid type or key. It modifies the custom column description table so that the column will appear next time calibre restarts.
I think I have used that at some time. But, I was more thinking of a dialog to prompt for the names to use. But, I might look at the current dialog, with suggestions passed in and disable the type related fields so that that is done correctly. While I like the idea of a simplified prompt that only asks for the name, I also like presenting the full details for people to see, but, making sure the column is created correctly.
davidfor is offline   Reply With Quote
Old 12-23-2021, 06:03 AM   #1594
chaley
Grumpy old git
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.
 
chaley's Avatar
 
Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
Quote:
Originally Posted by davidfor View Post
I think I have used that at some time. But, I was more thinking of a dialog to prompt for the names to use. But, I might look at the current dialog, with suggestions passed in and disable the type related fields so that that is done correctly. While I like the idea of a simplified prompt that only asks for the name, I also like presenting the full details for people to see, but, making sure the column is created correctly.
If you decide to do this I am up for making necessary changes to the base create column dialog such as adding the ability to disable some of the field boxes, especially type. It seems that the dialog can already use a "prototype" definition simply by adding the prototype to the existing list of columns (parent.custcols) then passing that key. The dialog could do with some refactoring so changes that help your effort aren't a problem.
chaley is offline   Reply With Quote
Old 12-28-2021, 08:42 PM   #1595
Rellwood
Library Breeder
Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.Rellwood ought to be getting tired of karma fortunes by now.
 
Rellwood's Avatar
 
Posts: 944
Karma: 1900141
Join Date: Apr 2015
Location: Fullerton, California
Device: Kobo Aura HD (1) PW3 (4) PW3 2019 new edition (1)
Sync with Content and Devices

If there was a way of syncing with Amazon content and devices, maybe the Amazon Kindle Collections, it would be great. I know there is the Kindle Collections plugin, but it doesn't work if you don't have a jailbroken kindle. Since Amazon changed the way they display content and devices there isn't an easy way to see what is in the collections, or even what is in a library since they only show 25 books at a time, and the list isn't easy to copy to word/excel to format into an importable list.

The goal of the plugin would be to at the minimum sync books/docs in Amazon with Calibre one-way. Just a confirmation that said book or doc is in Amazon. Syncing can be done by id or by title/author. Also, purchase or add date should be listed - if it is listed as read that would be good. Amazon also lists the collections the book is in as well. Basically, whatever information that is shown in Content & Devices should be able to be synced with Calibre.

If there was a way of doing it with Kindle Collections, you guys would have figured it out already, but I would absolutly love to be able to sync what is in Kindle Collections with my library to see which books are in which collection.
Rellwood is offline   Reply With Quote
Reply

Tags
epub fix, epub-fix, google books, metadata calibre title, pdf, pdf and calibre, plugin development

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PRS-505 Any ideas what this might be? Neupy Sony Reader 4 07-03-2012 08:19 AM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 01:11 PM
Ideas? mike_bike_kite Which one should I buy? 10 06-13-2010 04:37 PM
Ideas F1Wild Amazon Kindle 4 07-10-2009 07:01 AM


All times are GMT -4. The time now is 04:14 PM.


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