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-28-2017, 05:52 AM   #1021
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
New beta - Add support for downloading page count from other sites

Attached is a beta to add support for downloading the page count from sites other than Goodreads. This was prompted by BeckyEbook's work to add Lubimyczytac.pl. While doing this, I have needed to add extra options for the page count download and I have reorganised the configuration dialog to two tabs. The download options and the general options are on the second tab.

I have also included Nicolas F's French translation.

I have attached a screenshot of the new configuration options. These are:
  • A list of available sites to download the page count from. The list has:
    • A checkbox to make the site "active".
    • The order of the list is the order sites will be search.
    • The arrows next to the list are used to reorder the sites.
  • Under the list are some options for the menu and the search:
    • "Show download from all sources menu item" - This adds a menu option to try to download the page count from all the sources.
    • "Only show active download source in the menu" - If this is checked, only the download sources marked as "Active" will be displayed in the menu.
    • "Try to download page count from each source" - If this is not checked, when the "all sources" option is used, the sources marked as "Active" will not be used.

I'd like to think the options above make it obvious how this works. But, I'm sure it doesn't And I am very happy to hear suggestions on how to better phrase the options and the tooltips.

What these options give are the following modes for getting a page count:
  • Estimate from the book. This is the same as current option.
  • Download the page count from a specific web site. At the moment, this is Goodreads and lubimyczytac.pl.
  • Download the page count from any of the sites.
  • Download the page count from any of the "active" sites.

For both of the last two options, the sites will be checked in the order the are listed at the top of the configuration. The site will only be checked if the book has an identifier for the site, and once a page count has been retrieved, no more sites will be checked.

So, if you have the sites in the order lubimyczytac.pl, Goodreads:
  • If a book has an identifier for both sites, when doing an all sources fetch, lubimyczytac.pl will be checked first. If the page count is found, Goodreads is not used. If the page count is not found on lubimyczytac.pl, the Goodreads is used.
  • If a book only has the identifier one of the sites, when doing an all sources fetch, only that site will be used for that book.

This should give plenty of flexibility in how to choose where to fetch the page counts from.

As you can see, this beta only has two sites. I have tried to do this in a way that adding more sites is easy. The information I need to do this is:
  • Site URL with an indication of where the identifier goes. For Goodreads this is: "http://www.goodreads.com/book/show/%s". The "%s" is where the identifier goes.
  • The path through the page source for page count is. For Goodreads this is: "//div[@id="details"]/div[@class="row"]/span[@itemprop="numberOfPages"]/text()". It's not that scary. The main thing I need to know is where on the page the page count is and the surrounding tags.
  • A name.
  • The identifier name.

As always, if anyone has a problem with the beta, please report them here in as much detail as possible. And any suggestions for better labels for the options will be gratefully received. I'm particularly unhappy with "Active" in the site list, but I can't come up with anything better. "Enabled" isn't right either.
Attached Thumbnails
Click image for larger version

Name:	Beta-ExtraDownloads.jpg
Views:	211
Size:	47.5 KB
ID:	154562  
Attached Files
File Type: zip Count Pages-beta.zip (283.1 KB, 165 views)
davidfor is offline   Reply With Quote
Old 01-28-2017, 12:23 PM   #1022
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
As always, if anyone has a problem with the beta, please report them here in as much detail as possible. And any suggestions for better labels for the options will be gratefully received. I'm particularly unhappy with "Active" in the site list, but I can't come up with anything better. "Enabled" isn't right either.
No problem for me with this beta (yet ).

If you don't like the active label, you could go with what was done for custom column in calibre :
There is no label, only a checkbox in the "name" column, and you could talk about selected sources. I think that it would be easy enough to understand.
Nicolas F is offline   Reply With Quote
Advert
Old 01-28-2017, 05:49 PM   #1023
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
I need more to test a beta version - so far is OK.
  • Perhaps instead of a separate column "Active" you can add a checkbox to the column "Identifier". See thumbnail.
  • The proposal icon to download all sources.
  • Updated Polish translation.
Attached Thumbnails
Click image for larger version

Name:	cp-171beta-proposal.png
Views:	174
Size:	25.4 KB
ID:	154566  
Attached Images
 
Attached Files
File Type: zip cp171beta-pl.zip (10.2 KB, 151 views)
BeckyEbook is offline   Reply With Quote
Old 01-28-2017, 06:44 PM   #1024
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: 73,976
Karma: 128903378
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 BeckyEbook View Post
I need more to test a beta version - so far is OK.
  • Perhaps instead of a separate column "Active" you can add a checkbox to the column "Identifier". See thumbnail.
  • The proposal icon to download all sources.
  • Updated Polish translation.
The problem is that it's near impossible to see what you've done because the screen grab is not in English.
JSWolf is offline   Reply With Quote
Old 01-28-2017, 07:37 PM   #1025
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 692
Karma: 2180740
Join Date: Jan 2017
Location: Poland
Device: Misc
Quote:
Originally Posted by JSWolf View Post
The problem is that it's near impossible to see what you've done because the screen grab is not in English.
No problem.
Attached Thumbnails
Click image for larger version

Name:	cp-171beta-proposal-en.png
Views:	196
Size:	25.3 KB
ID:	154573  
BeckyEbook is offline   Reply With Quote
Advert
Old 01-28-2017, 08:20 PM   #1026
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: 20,568
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
I'm particularly unhappy with "Active" in the site list, but I can't come up with anything better. "Enabled" isn't right either.
How about 'Activated' or 'Available' - else https://www.powerthesaurus.org/

BR
BetterRed is offline   Reply With Quote
Old 01-28-2017, 08:48 PM   #1027
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by BeckyEbook View Post
I need more to test a beta version - so far is OK.
  • Perhaps instead of a separate column "Active" you can add a checkbox to the column "Identifier". See thumbnail.
I realised after posting the beta that I should have had the identifier in the list. And the two checkboxes probably work better. But having one at the beginning makes it seem like it is more important. I would tend to interpret it as meaning enable/disable that entry completely.
Quote:
  • The proposal icon to download all sources.
Thanks. I just couldn't find anything suitable yesterday and I my image editing skills a non-existent.
Quote:
  • Updated Polish translation.
Thanks.
davidfor is offline   Reply With Quote
Old 01-29-2017, 07:50 AM   #1028
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
New beta - Update for multiple download sites

Here is another beta of the plugin. The changes are those that have been discussed:
  • Move the "active" checkbox to the Identifiers column.
  • Add column and checkbox for "On Menu".
  • Remove the "Only show active download source in the menu" option as it is not needed.

I'm considering the need for the "Try to download page count from each source" option. With this checked, all the sites with a check against the identifier will be attempted until the page count is downloaded. If it is unchecked, then only the first site that has an identifier will be used for each book. I'm not sure if the option is needed and it should just use all sites.
Attached Files
File Type: zip Count Pages-beta.zip (286.2 KB, 172 views)
davidfor is offline   Reply With Quote
Old 01-29-2017, 11:34 AM   #1029
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Another odd blip that's started happening. Since I tried the Beta you have up, when I run the 'Estimate page/word count' via the shortcut, it works every time. Great! What happens now, is that it does not update in the 'Book details' panel automatically as it did previously. Modifying the count manually updates 'Book details' automatically, it seems to only happen with Estimate, and my tests have it happening with both the shortcut and by directly pressing the button.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	149
Size:	22.2 KB
ID:	154587  
MerlinMama is offline   Reply With Quote
Old 01-29-2017, 05:51 PM   #1030
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by MerlinMama View Post
Another odd blip that's started happening. Since I tried the Beta you have up, when I run the 'Estimate page/word count' via the shortcut, it works every time. Great! What happens now, is that it does not update in the 'Book details' panel automatically as it did previously. Modifying the count manually updates 'Book details' automatically, it seems to only happen with Estimate, and my tests have it happening with both the shortcut and by directly pressing the button.
Does it get updated if you select a different book and come back? If so, I think I know where to look. And is this what was happening with your previous report?
davidfor is offline   Reply With Quote
Old 01-29-2017, 06:05 PM   #1031
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: 73,976
Karma: 128903378
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 BeckyEbook View Post
No problem.
That looks good. Thanks.
JSWolf is offline   Reply With Quote
Old 01-29-2017, 06:07 PM   #1032
MerlinMama
Evangelist
MerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beautyMerlinMama does all things with Zen-like beauty
 
MerlinMama's Avatar
 
Posts: 482
Karma: 32554
Join Date: May 2014
Location: Canada
Device: Kobo Sage
Quote:
Originally Posted by davidfor View Post
Does it get updated if you select a different book and come back? If so, I think I know where to look. And is this what was happening with your previous report?
Yes, it does.

The previous, the shortcut just wouldn't work after a while and I would need to restart, but when using the Count pages button it would function properly and Details panel would update. That problem hasn't reoccurred since I installed the beta. Since I have no idea what would make it stop working, I can't be certain if completely fixed, but for now it hasn't happened again.
MerlinMama is offline   Reply With Quote
Old 01-29-2017, 06:28 PM   #1033
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,233
Karma: 11768331
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
I have the same problem with page number and book details (beta). I thought I was imagining things.
Terisa de morgan is offline   Reply With Quote
Old 01-30-2017, 04:26 AM   #1034
Nicolas F
Groupie
Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.Nicolas F once ate a cherry pie in a record 7 seconds.
 
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
Quote:
Originally Posted by davidfor View Post
Here is another beta of the plugin. The changes are those that have been discussed:
  • Move the "active" checkbox to the Identifiers column.
  • Add column and checkbox for "On Menu".
  • Remove the "Only show active download source in the menu" option as it is not needed.

I'm considering the need for the "Try to download page count from each source" option. With this checked, all the sites with a check against the identifier will be attempted until the page count is downloaded. If it is unchecked, then only the first site that has an identifier will be used for each book. I'm not sure if the option is needed and it should just use all sites.
In my opinion, the new beta option page is more difficult to understand. It's hard to understand what the checkbox in the identifier column is supposed to do.
I think a "Only show selected download sources in the menu" would be far better, with a checkbox at the beginning of the line (like what BeckyEbook did).
Nicolas F is offline   Reply With Quote
Old 01-30-2017, 06:48 AM   #1035
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Nicolas F View Post
In my opinion, the new beta option page is more difficult to understand. It's hard to understand what the checkbox in the identifier column is supposed to do.
I think a "Only show selected download sources in the menu" would be far better, with a checkbox at the beginning of the line (like what BeckyEbook did).
I'm a little confused. BeckyEbook's screenshot had two checkboxes. One at the beginning and the other in a column called "On menu". My first beta had the single checkbox at the start of the line.

The problem with that is that it confuses concepts: do you show the site on the menu, and do you use the site during the download from all.

The question probably is whether they need to be separated. With the two sites we have, probably not. I'm not going to display or search lubimyczytac.pl except to test that everything works. If there were more sites, that might change. If they are all for non-English books, I won't be using them. If a site is added that gives a better page count for books I have, then I might use them.

In any case, I didn't like the first version I did. I like this version better, but, I'm still not that happy with it.
davidfor 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 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


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


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