|
|
#31 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 88
Karma: 522110
Join Date: Dec 2010
Location: Canada
Device: Kobo Wifi and Kobo Touch and Kobo Glo
|
Code:
{series}{series_index:0>2s| - | - }{title}{#pages:| (|) }
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. |
|
|
|
|
|
#32 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,098
Karma: 1211234
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
Enthusiast
|
|
|
|
#33 |
|
Series Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,045
Karma: 43315789
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 |
|
|
|
|
|
#34 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,098
Karma: 1211234
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@Nyssa - see the two posts before yours
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#35 |
|
Series Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,045
Karma: 43315789
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle 3 (Wifi Only), Kindle Paperwhite
|
![]() 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. |
|
|
|
|
|
#36 | |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 88
Karma: 522110
Join Date: Dec 2010
Location: Canada
Device: Kobo Wifi and Kobo Touch and Kobo Glo
|
Quote:
|
|
|
|
|
|
|
#37 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,098
Karma: 1211234
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
v1.1 Released
Changes in this release:
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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#38 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 215
Karma: 1023506
Join Date: Feb 2010
Location: California
Device: kindle 3, Fire, Asus Transformer & Fire HD
|
Wow! This is way cool. Thanks
|
|
|
|
|
|
#39 |
|
Series Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,045
Karma: 43315789
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. |
|
|
|
|
|
#40 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,098
Karma: 1211234
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#41 | |
|
Series Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,045
Karma: 43315789
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle 3 (Wifi Only), Kindle Paperwhite
|
Quote:
|
|
|
|
|
|
|
#42 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,098
Karma: 1211234
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#43 |
|
Series Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,045
Karma: 43315789
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. |
|
|
|
|
|
#44 |
|
eBook Junkie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 854
Karma: 1006620
Join Date: May 2010
Location: USA
Device: Kindle Fire HD, Kindle 4, Kindle PW, Galaxy Tab
|
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
__________________
Nyn |
|
|
|
|
|
#45 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,098
Karma: 1211234
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Kindle Collections | meme | Plugins | 1869 | 06-09-2013 06:03 AM |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 632 | 06-02-2013 04:40 PM |
| [GUI Plugin] Open With | kiwidude | Plugins | 183 | 04-22-2013 02:25 PM |
| [GUI Plugin] Quick Preferences | kiwidude | Plugins | 20 | 11-05-2012 06:40 PM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |