Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-13-2026, 07:47 PM   #1906
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,792
Karma: 7945209
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Pendragn View Post
Is there a way to customize the menu icon for Count Pages? I've customized my theme and icons for the rest of calibre, and I'd love to change the Count Pages icon to match
You want to create the following structure in your calibre config dir:

portable calibre:
"C:\CALIBRE_8\Calibre Settings\resources\images\Count Pages\count_pages.png"

for calibre main install, on Windows, this would be:
"C:\%appdata%\calibre\resources\images\Count Pages\count_pages.png"
Comfy.n is online now   Reply With Quote
Old 01-14-2026, 07:27 PM   #1907
Pendragn
Member
Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.Pendragn knows what's going on.
 
Posts: 20
Karma: 25272
Join Date: Apr 2016
Device: None
Quote:
Originally Posted by Comfy.n View Post
You want to create the following structure in your calibre config dir:

portable calibre:
"C:\CALIBRE_8\Calibre Settings\resources\images\Count Pages\count_pages.png"

for calibre main install, on Windows, this would be:
"C:\%appdata%\calibre\resources\images\Count Pages\count_pages.png"
Thank you!
Pendragn is offline   Reply With Quote
Advert
Old 01-17-2026, 04:03 PM   #1908
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,656
Karma: 150265991
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Due to a change in the version of Python in the new calibre beta, there is a warning that comes up when you run calibre in debug mode. If fixed this and I've upped the version to 1.14.5.

Here is the warning and the fix.
Code:
calibre_plugins.count_pages.statistics:415: SyntaxWarning: "\D" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\D"? A raw string is also an option.
calibre_plugins.count_pages.statistics:416: SyntaxWarning: "\D" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\D"? A raw string is also an option.
Code:
    get_cbz_page_count(r'''C:\Dev\Tools\eclipse\workspace\_Misc\misery-depot.zip''')
    get_cbr_page_count(r'''C:\Dev\Tools\eclipse\workspace\_Misc\misery-depot.cbr''')
JSWolf is offline   Reply With Quote
Old 01-17-2026, 10:43 PM   #1909
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,777
Karma: 80104644
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
@jswolf please don't take this the wrong way. You're making a mountain out of a molehill here. The warning is in a section of code that is only executed when the plugin is being tested; it's a purely cosmetic message in the calibre log.
PeterT is offline   Reply With Quote
Old Yesterday, 06:59 AM   #1910
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 81,656
Karma: 150265991
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by PeterT View Post
@jswolf please don't take this the wrong way. You're making a mountain out of a molehill here. The warning is in a section of code that is only executed when the plugin is being tested; it's a purely cosmetic message in the calibre log.
According to @DNSB, this is going to become an error in some newer version of Python. So why not get it sorted now rather then later?
Quote:
Originally Posted by DNSB View Post
Minor correction. Python 3.14.2 still supports that syntax but it is not going to be supported in some future version. This does give time to fix the plugins that use that form.
JSWolf is offline   Reply With Quote
Advert
Old Yesterday, 07:41 AM   #1911
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,712
Karma: 13151331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by JSWolf View Post
According to @DNSB, this is going to become an error in some newer version of Python. So why not get it sorted now rather then later?
Because generating a new version only for those 2 warnings when they aren't even an error in the new calibre version doesn't make sense (at least from my point of view).
Terisa de morgan is offline   Reply With Quote
Old Yesterday, 06:37 PM   #1912
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 49,627
Karma: 174632684
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For me, given that at this time those errors are cosmetic only, it makes sense to fix the issue when a new release is made for other reasons. Looking at previous release dates, Python 3.15.0 is due for release on 2026-Oct-01 and that it is unlikely that calibre 10 would be released until the version is at least 3.15.2, we have a fair while before this becomes a real issue.
DNSB is offline   Reply With Quote
Reply

Tags
count, count pages, page count, pages, plugin


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1280 11-22-2025 09:09 PM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 06:42 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 62 03-17-2024 12:47 AM
[GUI Plugin] Kindle Collections (old) meme Plugins 2070 08-11-2014 01:02 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 04:27 AM.


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