|  06-08-2011, 12:51 AM | #31 | 
| Connoisseur            Posts: 97 Karma: 522110 Join Date: Dec 2010 Location: Canada Device: Kobo Wifi and Kobo Touch and Kobo Glo and Kobo H20 | 
			
			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:| (|) }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. | 
|   |   | 
|  06-08-2011, 03:44 AM | #32 | 
| Calibre Plugins Developer            Posts: 4,735 Karma: 2197770 Join Date: Oct 2010 Location: Australia Device: Kindle Oasis | 
			
			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. | 
|   |   | 
|  06-08-2011, 07:03 AM | #33 | 
| Series Addict            Posts: 6,180 Karma: 167189477 Join Date: Dec 2010 Location: Florida, USA Device: Kindle Paperwhite (2nd Gen) | 
				
				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 | 
|   |   | 
|  06-08-2011, 07:54 AM | #34 | 
| Calibre Plugins Developer            Posts: 4,735 Karma: 2197770 Join Date: Oct 2010 Location: Australia Device: Kindle Oasis | 
			
			@Nyssa - see the two posts before yours    | 
|   |   | 
|  06-08-2011, 08:40 AM | #35 | 
| Series Addict            Posts: 6,180 Karma: 167189477 Join Date: Dec 2010 Location: Florida, USA Device: Kindle Paperwhite (2nd Gen) | |
|   |   | 
|  06-08-2011, 09:20 AM | #36 | |
| Connoisseur            Posts: 97 Karma: 522110 Join Date: Dec 2010 Location: Canada Device: Kobo Wifi and Kobo Touch and Kobo Glo and Kobo H20 | Quote: 
   | |
|   |   | 
|  06-09-2011, 09:07 AM | #37 | 
| Calibre Plugins Developer            Posts: 4,735 Karma: 2197770 Join Date: Oct 2010 Location: Australia Device: Kindle Oasis | 
				
				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. | 
|   |   | 
|  06-09-2011, 02:44 PM | #38 | 
| Addict            Posts: 272 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
		 | 
|   |   | 
|  06-09-2011, 04:08 PM | #39 | 
| Series Addict            Posts: 6,180 Karma: 167189477 Join Date: Dec 2010 Location: Florida, USA Device: Kindle Paperwhite (2nd Gen) | 
			
			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. | 
|   |   | 
|  06-09-2011, 04:40 PM | #40 | 
| Calibre Plugins Developer            Posts: 4,735 Karma: 2197770 Join Date: Oct 2010 Location: Australia Device: Kindle Oasis | 
			
			@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.
		 | 
|   |   | 
|  06-09-2011, 04:48 PM | #41 | |
| Series Addict            Posts: 6,180 Karma: 167189477 Join Date: Dec 2010 Location: Florida, USA Device: Kindle Paperwhite (2nd Gen) | Quote: 
 | |
|   |   | 
|  06-09-2011, 04:49 PM | #42 | 
| Calibre Plugins Developer            Posts: 4,735 Karma: 2197770 Join Date: Oct 2010 Location: Australia Device: Kindle Oasis | 
			
			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.
		 | 
|   |   | 
|  06-09-2011, 05:00 PM | #43 | 
| Series Addict            Posts: 6,180 Karma: 167189477 Join Date: Dec 2010 Location: Florida, USA Device: Kindle Paperwhite (2nd Gen) | 
			
			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. | 
|   |   | 
|  06-09-2011, 06:20 PM | #44 | 
| eBook Junkie            Posts: 1,526 Karma: 1464018 Join Date: May 2010 Location: USA Device: Kindle Fire 2020, Kindle PW2 | 
			
			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 | 
|   |   | 
|  06-09-2011, 06:28 PM | #45 | 
| Calibre Plugins Developer            Posts: 4,735 Karma: 2197770 Join Date: Oct 2010 Location: Australia Device: Kindle Oasis | 
			
			@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.
		 | 
|   |   | 
|  | 
| Tags | 
| count, count pages, page count, pages, plugin | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| [GUI Plugin] Quality Check | kiwidude | Plugins | 1277 | 10-21-2025 10:04 AM | 
| [GUI Plugin] Open With | kiwidude | Plugins | 404 | 02-21-2025 05:42 AM | 
| [GUI Plugin] Quick Preferences | kiwidude | Plugins | 62 | 03-16-2024 11:47 PM | 
| [GUI Plugin] Kindle Collections (old) | meme | Plugins | 2070 | 08-11-2014 12:02 AM | 
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |