View Single Post
Old 03-23-2023, 08:39 AM   #1638
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: 696
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 6
I'm having problems with the Count Pages plugin again, when trying to download page numbers from Goodreads. Here's the log:

Count Page/Word Statistics
Failed to initialize plugin: '/Users/HenryGeorge/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
-------------------------------
Logfile for book ID 13786 (Politics, Poverty and Belief - Frank Field)
Method of counting _page_count_mode=Download _download_sources=[('goodreads', '61884874')]
results= {'PageCount': None}
FAILED TO GET PAGE COUNT FROM WEBSITE
13786
Failed to initialize plugin: '/Users/HenryGeorge/Library/Preferences/calibre/plugins/FictionDB.zip'
do_statistics_for_book: None 0 Download [('goodreads', '61884874')] ['PageCount'] 2400 True
DownloadPagesWorker::run - source_id=61884874, source_name=goodreads
DownloadPagesWorker::run - PAGE_DOWNLOADS[source_name]={'URL': 'http://www.goodreads.com/book/show/%s', 'pages_xpath': '//div[@class="FeaturedDetails"]/p[@data-testid="pagesFormat"]/text()', 'name': 'Goodreads', 'id': 'goodreads', 'icon': 'images/goodreads.png', 'active': True, 'pages_regex': '([0-9]+) pages'}
DownloadPagesWorker::run - self.pages_regex=([0-9]+) pages
Download source book url: 'http://www.goodreads.com/book/show/61884874'
_parse_page_count: start
_parse_page_count: root.__class__= HtmlElement
_parse_page_count: pages_xpath='//div[@class="FeaturedDetails"]/p[@data-testid="pagesFormat"]/text()', =pages_regex='([0-9]+) pages'
_parse_page_count: pages= []
_parse_page_count: end

Any ideas? I'm using the latest release, v1.12.1.
Waylander is offline   Reply With Quote