07-22-2018, 12:38 PM | #1186 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
IIRC, the second method was designed with Mobi in mind, which somewhat alleviated the potential issue of really messy code . With more complex formats, it's probably less useful & accurate.
|
07-22-2018, 10:34 PM | #1187 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The code is probably pre-azw3, so that might be right. I'll look at adding a format check on that bit.
|
Advert | |
|
07-23-2018, 12:19 AM | #1188 | |
Connoisseur
Posts: 85
Karma: 10
Join Date: Oct 2014
Device: Kindle Paperwhite 2
|
Quote:
|
|
08-06-2018, 06:31 AM | #1189 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2018
Device: Kindle PW3
|
My books have verified goodreads Ids and when I go through the goodreads plugin I can see that goodreads does have a page count listed for all my books but 9 times out of 10 the Count Pages plugin comes back "FAILED TO GET PAGE COUNT FROM WEBSITE". I can't figure out why. Any ideas? If I keep rerunning the search it will pick up a few more here and there but still very rare for it to find one.
Last edited by Iceybones; 08-06-2018 at 06:33 AM. |
08-06-2018, 07:05 AM | #1190 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
Advert | |
|
08-06-2018, 07:45 AM | #1191 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2018
Device: Kindle PW3
|
Hey Davidfor. Thanks for the quick reply. Looks like the reason is "Failed to make details query:...". I uninstalled it and reinstalled it a few times and just tried it again and it worked like a charm for the first 20 books, now it's back to not working/only successful on 1 out of every 50 or so. Perhaps I'm hitting a reCaptcha?
Last edited by Iceybones; 08-06-2018 at 08:08 AM. |
08-06-2018, 08:44 AM | #1192 |
Resident Curmudgeon
Posts: 73,998
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Just a quick note. The page count for eBooks on GoodReads is wrong. The staff refuse to accept the correct page number for eBooks and use some version pBook page numbers and that is 100% wrong.
|
08-06-2018, 09:27 AM | #1193 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
08-06-2018, 09:31 AM | #1194 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Looking at some of my books, Goodreads has a page count for each edition it has. So, yes, the do have the page count for a paper book, but they also have counts for other paper books and ebooks.
|
08-06-2018, 09:44 AM | #1195 |
Junior Member
Posts: 8
Karma: 10
Join Date: Aug 2018
Device: Kindle PW3
|
davidfor: Ok that's understandable. Thanks. I'm having it calculate all my books right now and putting the page count into a separate column, just so I get a relative idea. Then I'll just have to do the goodreads column in small batches.
|
09-03-2018, 03:37 PM | #1196 |
Zealot
Posts: 109
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
|
I'm running calibre 3.28 (I'll update soon) and Count Pages plugin 1.8.2 on a Windows 10, 64-bit. It appears Count Pages copies the book files to a temporary directory on the system drive. Is it possible to not do this? Can the files be examined in-place?
I'm working with a large number of biggish files (comic book collection, 100MB files aren't uncommon) and the solid state system drive isn't that big. Discovering the 70GB free space was suddenly gone was a bit of an unpleasant shock... |
09-03-2018, 07:07 PM | #1197 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@kjdavies - those temporary files should have been deleted as it counted each book.
By default calibre uses the default location for temporary files (e.g. on it's Windows C:\Users\<users>\AppData\Local\Temp), and it uses it extensively, e.g. when adding and converting books. It's pretty good at cleaning up, but remnants can get left behind that normal 'system cleanup' processes take of. You can give calibre a dedicated folder for its temporaries on another drive via the CALIBRE_TEMP_DIR environment variable, see User Manual: Environment variables If you give calibre a dedicated location for its temporaries you'll have to make provision for any additional cleanup. Curious - what format are the comics? I only count words and I never run Count Pages against CBZ or CBR (or audio/video formats etc). Maybe the plugin needs an Exclude Formats setting. BR |
09-03-2018, 07:41 PM | #1198 | |
Zealot
Posts: 109
Karma: 53342
Join Date: Jun 2013
Device: Sony PRS-600
|
Quote:
In this case calibre did clean up after itself, but not until I'd discovered it filled the system drive. I closed calibre and the space was recovered. I've set CALIBRE_TEMP_DIR as a system variable, so that should work after restarting. I'm counting pages in (in this case) CBZ files, but I do have CBR (that I usually convert to CBZ). Page count is equal to the number of images. Overall I'm happy with how this plugin works, and would prefer that CBZ and CBR continue to be supported. I just noticed that it ate my system drive. I've also noticed that queuing the files takes many times longer (not measured, but observed) than the page count. If it could read in place it would finish almost immediately. This obviously might not be true of other formats such as PDF and EPUB. |
|
09-03-2018, 08:15 PM | #1199 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
From my experience, the counting takes much longer than setting up the count job. But, that is probably related to the file types. I am usually running the plugin on epubs and I know it takes some time for each of these. I haven't counted enough CBR/CBZ to see what happens there. In any case, I will not be changing the plugin to handle these differently. |
|
09-03-2018, 08:17 PM | #1200 |
null operator (he/him)
Posts: 20,575
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@kjdavies - Whilst doing an in-place file count for CBZ and CBR would appear to be relatively simple, it may not be in practice. As you've probably noticed the plugin's author hasn't been active for some time; a couple of active plugin devs (jackie_w and davidfor) have kept the plugin compatible with core developments and added a few enhancements since.
I just did a test on a couple of very large CBZ's (50-800MB) counting pages, it took a while. My impression is, it copied the CBZ to temp, unpacked the copy to a folder, then did a file count on the folder. My file manager displays file counts for similar (same) zips more-or-less instantly. @davidfor - we sort of x-posted. BR Last edited by BetterRed; 09-03-2018 at 09:06 PM. |
Tags |
count, count pages, page count, pages, plugin |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1184 | 04-17-2024 06:17 PM |
[GUI Plugin] Open With | kiwidude | Plugins | 403 | 04-01-2024 08:39 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 |