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 05-09-2026, 07:36 AM   #1966
fmk007
Junior Member
fmk007 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: Mar 2025
Device: paperwhite
@kiwidude:
Thank you very much for fixing the problem on ancient installations!
With version 1.15.2 it works perfect again on my Win7/Calibre4.23 installation.
fmk007 is offline   Reply With Quote
Old 05-30-2026, 04:03 PM   #1967
TrvlrsChick
Enthusiast
TrvlrsChick will become famous soon enoughTrvlrsChick will become famous soon enoughTrvlrsChick will become famous soon enoughTrvlrsChick will become famous soon enoughTrvlrsChick will become famous soon enoughTrvlrsChick will become famous soon enough
 
TrvlrsChick's Avatar
 
Posts: 44
Karma: 586
Join Date: Jul 2010
Device: Nook STR
I can't get this to work. I try to click the button and it says I have to choose a column, but the only options it gives me aren't the columns I would want to use. Help?
TrvlrsChick is offline   Reply With Quote
Old 05-30-2026, 09:42 PM   #1968
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,803
Karma: 34252730
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by TrvlrsChick View Post
I can't get this to work. I try to click the button and it says I have to choose a column, but the only options it gives me aren't the columns I would want to use. Help?
You probably need to add some custom columns, see ==>> https://github.com/kiwidude68/calibr...custom-columns

And then configure the plugin to use those custom columns.

BR
BetterRed is offline   Reply With Quote
Old 06-11-2026, 08:47 AM   #1969
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 724
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 6
I am no longer getting page counts after linking to Goodreads. Count Pages worked yesterday, but doesn't today. The log is below:
Spoiler:

Count Page/Word Statistics (1 of 1)
calibre_plugins.fictiondb.__init__:54: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
Failed to initialize plugin: '/Users/****/Library/Preferences/calibre/plugins/FictionDB.zip'
do_count_statistics - book_path=None, pages_algorithm=0, page_count_mode=Download, statistics_to_run=['PageCount'], custom_chars_per_page=2400, icu_wordcount=True
do_count_statistics - job started for file book_path=None
do_count_statistics - book_path=None, pages_algorithm=0, page_count_mode=Download, statistics_to_run=['PageCount'], custom_chars_per_page=2400, icu_wordcount=True
do_count_statistics - job started for file book_path=None
do_count_statistics - book_path=None, pages_algorithm=0, page_count_mode=Download, statistics_to_run=['PageCount'], custom_chars_per_page=2400, icu_wordcount=True
do_count_statistics - job started for file book_path=None
do_count_statistics - book_path=None, pages_algorithm=0, page_count_mode=Download, statistics_to_run=['PageCount'], custom_chars_per_page=2400, icu_wordcount=True
do_count_statistics - job started for file book_path=None
-------------------------------
Logfile for book ID 18525 (Caesar's Soldier - Alex Gough)
Method of counting _page_count_mode=Download _download_sources=[('goodreads', '208565006')]
results= {'PageCount': None}
FAILED TO GET PAGE COUNT FROM WEBSITE
18525
calibre_plugins.fictiondb.__init__:54: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
Failed to initialize plugin: '/Users/****/Library/Preferences/calibre/plugins/FictionDB.zip'
do_statistics_for_book: None 0 Download [('goodreads', '208565006')] ['PageCount'] 2400 True
DownloadPagesWorker::run - source_id=208565006, source_name=goodreads
DownloadPagesWorker::run - PAGE_DOWNLOADS[source_name]={'URL': 'https://www.goodreads.com/book/show/%s', 'pages_xpath': '//script[@id="__NEXT_DATA__"]/text()', 'name': 'Goodreads', 'id': 'goodreads', 'icon': 'images/goodreads.png', 'active': True, 'pages_regex': '"numPages"[0-9]+),'}
DownloadPagesWorker::run - self.pages_regex="numPages"[0-9]+),
Download source book url: 'https://www.goodreads.com/book/show/208565006'
_parse_page_count: start
_parse_page_count: pages_xpath='//script[@id="__NEXT_DATA__"]/text()', =pages_regex='"numPages"[0-9]+),'
_parse_page_count: pages= []
_parse_page_count: end

-------------------------------
Logfile for book ID 18523 (Caesar's General - Alex Gough)
Method of counting _page_count_mode=Download _download_sources=[('goodreads', '225551116')]
results= {'PageCount': None}
FAILED TO GET PAGE COUNT FROM WEBSITE
18523
calibre_plugins.fictiondb.__init__:54: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
Failed to initialize plugin: '/Users/****/Library/Preferences/calibre/plugins/FictionDB.zip'
do_statistics_for_book: None 0 Download [('goodreads', '225551116')] ['PageCount'] 2400 True
DownloadPagesWorker::run - source_id=225551116, source_name=goodreads
DownloadPagesWorker::run - PAGE_DOWNLOADS[source_name]={'URL': 'https://www.goodreads.com/book/show/%s', 'pages_xpath': '//script[@id="__NEXT_DATA__"]/text()', 'name': 'Goodreads', 'id': 'goodreads', 'icon': 'images/goodreads.png', 'active': True, 'pages_regex': '"numPages"[0-9]+),'}
DownloadPagesWorker::run - self.pages_regex="numPages"[0-9]+),
Download source book url: 'https://www.goodreads.com/book/show/225551116'
_parse_page_count: start
_parse_page_count: pages_xpath='//script[@id="__NEXT_DATA__"]/text()', =pages_regex='"numPages"[0-9]+),'
_parse_page_count: pages= []
_parse_page_count: end

-------------------------------
Logfile for book ID 18522 (Caesar's Avenger - Alex Gough)
Method of counting _page_count_mode=Download _download_sources=[('goodreads', '242286554')]
results= {'PageCount': None}
FAILED TO GET PAGE COUNT FROM WEBSITE
18522
calibre_plugins.fictiondb.__init__:54: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
Failed to initialize plugin: '/Users/****/Library/Preferences/calibre/plugins/FictionDB.zip'
do_statistics_for_book: None 0 Download [('goodreads', '242286554')] ['PageCount'] 2400 True
DownloadPagesWorker::run - source_id=242286554, source_name=goodreads
DownloadPagesWorker::run - PAGE_DOWNLOADS[source_name]={'URL': 'https://www.goodreads.com/book/show/%s', 'pages_xpath': '//script[@id="__NEXT_DATA__"]/text()', 'name': 'Goodreads', 'id': 'goodreads', 'icon': 'images/goodreads.png', 'active': True, 'pages_regex': '"numPages"[0-9]+),'}
DownloadPagesWorker::run - self.pages_regex="numPages"[0-9]+),
Download source book url: 'https://www.goodreads.com/book/show/242286554'
_parse_page_count: start
_parse_page_count: pages_xpath='//script[@id="__NEXT_DATA__"]/text()', =pages_regex='"numPages"[0-9]+),'
_parse_page_count: pages= []
_parse_page_count: end

-------------------------------
Logfile for book ID 18528 (Caesar's Nemesis - Alex Gough)
Method of counting _page_count_mode=Download _download_sources=[('goodreads', '242268423')]
results= {'PageCount': None}
FAILED TO GET PAGE COUNT FROM WEBSITE
18528
calibre_plugins.fictiondb.__init__:54: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
Failed to initialize plugin: '/Users/****/Library/Preferences/calibre/plugins/FictionDB.zip'
do_statistics_for_book: None 0 Download [('goodreads', '242268423')] ['PageCount'] 2400 True
DownloadPagesWorker::run - source_id=242268423, source_name=goodreads
DownloadPagesWorker::run - PAGE_DOWNLOADS[source_name]={'URL': 'https://www.goodreads.com/book/show/%s', 'pages_xpath': '//script[@id="__NEXT_DATA__"]/text()', 'name': 'Goodreads', 'id': 'goodreads', 'icon': 'images/goodreads.png', 'active': True, 'pages_regex': '"numPages"[0-9]+),'}
DownloadPagesWorker::run - self.pages_regex="numPages"[0-9]+),
Download source book url: 'https://www.goodreads.com/book/show/242268423'
_parse_page_count: start
_parse_page_count: pages_xpath='//script[@id="__NEXT_DATA__"]/text()', =pages_regex='"numPages"[0-9]+),'
_parse_page_count: pages= []
_parse_page_count: end

Last edited by Waylander; 06-12-2026 at 11:33 AM.
Waylander is offline   Reply With Quote
Old 06-15-2026, 03:07 PM   #1970
CRussel
(he/him/his)
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 12,367
Karma: 80075122
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: Kobo Libra 2, Oasis (Gen3),Paperwhite (Gen10), Voyage, iPad Air M3
Quote:
Originally Posted by Waylander View Post
I am no longer getting page counts after linking to Goodreads. Count Pages worked yesterday, but doesn't today. T
Yup, same here. I opened a bug on GitHub.

Last edited by CRussel; 06-15-2026 at 03:55 PM.
CRussel is offline   Reply With Quote
Old 06-15-2026, 07:08 PM   #1971
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: 84,665
Karma: 153788055
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Don't bother to report linking to Goodreads not working as a bug. It no longer works because of Goodreads tightened security. It's dead Jim!
JSWolf is offline   Reply With Quote
Old 08-27-2026, 08:30 PM   #1972
justsomebody
Junior Member
justsomebody began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Aug 2026
Device: Boox Nova3
Someone posted a fix on the GitHub, but it hasn't been merged/released in a plugin update.

I was able to copy the added code into the download.py file in C:\Users\username\AppData\Roaming\calibre\plugins\ Count Pages.zip - then opened Calibre, ran the plugin on a book, and it worked. So that is an option for those who are comfortable doing that.
justsomebody is offline   Reply With Quote
Old Yesterday, 01:14 AM   #1973
mostspacefillah
Junior Member
mostspacefillah began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Nov 2023
Device: kobo
Quote:
Originally Posted by justsomebody View Post
Someone posted a fix on the GitHub, but it hasn't been merged/released in a plugin update.

I was able to copy the added code into the download.py file in C:\Users\username\AppData\Roaming\calibre\plugins\ Count Pages.zip - then opened Calibre, ran the plugin on a book, and it worked. So that is an option for those who are comfortable doing that.
Works perfectly!
Thanks for the heads up, and to ParzivalSan (if you're on here) for the fix itself

I've got minimal, close to non-existent, technical abilities when it comes to these things. So for anyone like me, it was as simple as:
1. extracting the files from the plugin zip
2. opening the download.py file in a text editor (eg. Notepad++)
3. following this LINK, copy and insert the green highlighted section between existing lines 100 and 101 (ie. you are not replacing any existing code, as I initially assumed, but adding lines of code to it.
4. save it, replacing the existing download.py file
5. zip it all up and install plugin as you normally would in Calibre
mostspacefillah is offline   Reply With Quote
Old Yesterday, 04:28 PM   #1974
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: 54,097
Karma: 182150337
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
For those who don't feel comfortable with modifying files in a .zip container, I've attached the modified file to this message with ParzivalSan's patch installed. the version was left at 1.15.2 to not interfere with the next official update.

I tested it on 6 books which required me to grab the goodreads ID for each. The word count for each was okay and matched what I already had but on 2 of them, the page count did not return a result. One book that returned word count but not page count was Feral Ambition, goodreads ID: 256590502.
Attached Files
File Type: zip Count Pages.zip (328.9 KB, 3 views)

Last edited by DNSB; Yesterday at 04:31 PM.
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 1291 08-13-2026 02:06 PM
[GUI Plugin] Open With kiwidude Plugins 405 02-09-2026 07:54 AM
[GUI Plugin] Quick Preferences kiwidude Plugins 63 02-09-2026 07:48 AM
[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


All times are GMT -4. The time now is 12:37 PM.


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