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 06-08-2011, 12:51 AM   #31
ArmorDog
Connoisseur
ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.
 
Posts: 93
Karma: 522110
Join Date: Dec 2010
Location: Canada
Device: Kobo Wifi and Kobo Touch and Kobo Glo
I love this plugin. I have a plugboard set up to add the page number in brackets to the title on my Kobo
Code:
{series}{series_index:0>2s| - | - }{title}{#pages:| (|) }
Two things I would love in this plugin:

1) A config option to have it automatically update the #pages column when the count worker thread comes back. Is this possible or is there a plugin limitation?

2) I think this one is even more likely to be impossible in a plugin: An option to have this plugin automatically run on any Epubs when they're added.
ArmorDog is offline   Reply With Quote
Old 06-08-2011, 03:44 AM   #32
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Re #1 - the reason for the prompt is to make sure the database is updated without losing any data. What if you were using edit metadata on that book when the page count job finished? The page count would be lost when you closed the dialog.

Re #2 - yes not possible afaik. There is no event notification that I am aware of to tell the plugin that a new book has been added.
kiwidude is offline   Reply With Quote
Old 06-08-2011, 07:03 AM   #33
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 5,455
Karma: 53485457
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle 3 (Wifi Only), Kindle Paperwhite
For Your Consideration:

Kiwidude, would you be willing/able to add an option that makes the page count populate a certain field "automatically" when adding a book to Calibre?

Oh, and thank you for the epub tip, I'll have to go back and give that a try. I have a few books where the page numbers are suspect.

Last edited by Nyssa; 06-08-2011 at 08:38 AM. Reason: typos
Nyssa is offline   Reply With Quote
Old 06-08-2011, 07:54 AM   #34
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@Nyssa - see the two posts before yours
kiwidude is offline   Reply With Quote
Old 06-08-2011, 08:40 AM   #35
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 5,455
Karma: 53485457
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle 3 (Wifi Only), Kindle Paperwhite
Quote:
Originally Posted by kiwidude View Post
@Nyssa - see the two posts before yours


I read #1, but not #2. So my thought was..."well I don't want the pages next to the title, but wouldn't it be cool if the page count field was automatically populated"

... Sorry & thank you.
Nyssa is offline   Reply With Quote
Old 06-08-2011, 09:20 AM   #36
ArmorDog
Connoisseur
ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.ArmorDog ought to be getting tired of karma fortunes by now.
 
Posts: 93
Karma: 522110
Join Date: Dec 2010
Location: Canada
Device: Kobo Wifi and Kobo Touch and Kobo Glo
Quote:
Originally Posted by kiwidude View Post
Re #1 - the reason for the prompt is to make sure the database is updated without losing any data. What if you were using edit metadata on that book when the page count job finished? The page count would be lost when you closed the dialog.

Re #2 - yes not possible afaik. There is no event notification that I am aware of to tell the plugin that a new book has been added.
Fair enough. I still love this plugin.
ArmorDog is offline   Reply With Quote
Old 06-09-2011, 09:07 AM   #37
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.1 Released

Changes in this release:
  • Add option to generate a word count instead of or in addition to page count

Thanks to Idolse for the code snippet. Retrieving the word count into an additional custom column will offer an alternative statistic indicating the relative size of your books.

Define a new Integer custom column to store your counts in, instructions as per the first post as you did for page count. You might find it useful to format this count using {0:,} as the format for the custom column. Then after installation of this plugin version/restarting Calibre, go to the plugin configuration dialog (Preferences->Plugins->User Interface plugins or via Plugin Updater) and select your custom column for word counts.

If you have no interest in retrieving the word count, perform the upgrade but no change is required to your configuration. Setting the custom column to blank (default) will mean the statistic is not calculated.
kiwidude is offline   Reply With Quote
Old 06-09-2011, 02:44 PM   #38
beckywc
Addict
beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.beckywc ought to be getting tired of karma fortunes by now.
 
beckywc's Avatar
 
Posts: 270
Karma: 1050426
Join Date: Feb 2010
Location: California
Device: iPad Mini w/Retina, Kindle 3, Kindle Fire HDX 8.9, & Asus Transformer
Wow! This is way cool. Thanks
beckywc is offline   Reply With Quote
Old 06-09-2011, 04:08 PM   #39
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 5,455
Karma: 53485457
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle 3 (Wifi Only), Kindle Paperwhite
You are the Awesome!

Note: I would suggest not to process more than 25 books at a time. I'm trying 75 and it's been at 99% complete for over 2 minutes now (total processing time over 5 minutes and 34 seconds), where as 25 books took an average of 50 seconds and 50 books took 2 minutes.
Nyssa is offline   Reply With Quote
Old 06-09-2011, 04:40 PM   #40
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@Nyssa - that surprises me. I did around 1500 books at once, without any issues (I can't remember how long - 10-15 mins?). I wonder if you have a problem with a particular book. It is running the statistics as parallel jobs just like conversions do so there should be no issues with memory leaks etc.
kiwidude is offline   Reply With Quote
Old 06-09-2011, 04:48 PM   #41
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 5,455
Karma: 53485457
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle 3 (Wifi Only), Kindle Paperwhite
Quote:
Originally Posted by kiwidude View Post
@Nyssa - that surprises me. I did around 1500 books at once, without any issues (I can't remember how long - 10-15 mins?). I wonder if you have a problem with a particular book. It is running the statistics as parallel jobs just like conversions do so there should be no issues with memory leaks etc.
Hmmm. Could be. I looked and my processing time for 25 books decreased from an avg of 50 seconds to 30 seconds. I then did 50 books and that only took 1 minute and a half. I'm trying 100 books now.
Nyssa is offline   Reply With Quote
Old 06-09-2011, 04:49 PM   #42
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Are your books mobi or ePub? Mine were ePub, so there was no conversion necessary. Also do you have plenty of space on your drive where the temp files reside.
kiwidude is offline   Reply With Quote
Old 06-09-2011, 05:00 PM   #43
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 5,455
Karma: 53485457
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle 3 (Wifi Only), Kindle Paperwhite
1. 100 books took 4 minutes and 4 seconds.

2. Mobi - automatically converted from AZW, etc. when added to the library.

3. I have plenty of space, approx. 800gigs of a terabyte drive.
Nyssa is offline   Reply With Quote
Old 06-09-2011, 06:20 PM   #44
nynaevelan
eBook Junkie
nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.nynaevelan ought to be getting tired of karma fortunes by now.
 
nynaevelan's Avatar
 
Posts: 1,337
Karma: 1459924
Join Date: May 2010
Location: USA
Device: Kindle Fire HD 2012, Kindle PW2, Galaxy Tab 10.1
I completed my collection of 1497 mobi's all in one swoop and while I cannot give you an exact time how long it took (because I was muti-tasking and moved my attention to something else) it did not take more than 1/2 an hour and that was with the fact that I received an error.

Nyn
nynaevelan is offline   Reply With Quote
Old 06-09-2011, 06:28 PM   #45
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@Nyn - yeah I don't consider that time unreasonable, given that you have mobi files so it is converting each one to ePub to count the words. I could possibly remove the need for the conversion with a little work, using similar code to what user_none has in his APNX file stuff. But this is one of those things that you only need to run once and it runs in the background, so a few seconds here or there shouldn't really make a huge difference. I'll put it on the todo list to do some proper testing at some point to see what difference it makes.
kiwidude is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Kindle Collections meme Plugins 2058 07-15-2014 01:36 AM
[GUI Plugin] Quality Check kiwidude Plugins 729 07-10-2014 06:35 PM
[GUI Plugin] Open With kiwidude Plugins 223 07-09-2014 02:42 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 28 04-23-2014 05:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 07:22 PM.


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