Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-16-2021, 09:09 PM   #346
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 lairdb View Post
I don't have the old one to compare, but I'm fairly sure that the plugin previously encoded special characters in substituted templates. (Or it handled multivalue templates differently, or something.)

Example issue: the {author} string
Code:
Hans Rosling & Ola Rosling & Anna Rosling Rönnlund
now comes through as
Code:
Hans%20Rosling%20&%20Ola%20Rosling%20&%20Anna%20Rosling%20Rönnlund
...and although the spaces are encoded, the ampersands are not and break the URL.

Do I now need a function wrapping each template entry, or...?
I'll have to look at that, as it looks like there was a change made a while ago that might have broken this. In a 2016, the plugin was changed to support templates in the URLs. Before that, the fields were encoded before being put into the URL. With this change, that no longer happened and it was up to the template to do that. I'll have to look back in the thread to see what was discussed at the time.
Quote:

(Calibre 5.9, plugin 1.8.1. Also, incidentally, opening Customize and clicking help yields an exception, pasted below.)
Spoiler:
Code:
calibre, version 5.9.0
ERROR: Unhandled exception: <b>TypeError</b>:write() argument must be str, not bytes

calibre 5.9 [64bit]  embedded-python: True is64bit: True
Windows-10-10.0.19041 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', '', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 36, 0) && Package KFX (from KFX Input) (1, 36, 0) && Find Duplicates (1, 8, 3) && Goodreads Sync (1, 15, 0) && KFX metadata reader (from KFX Input) (1, 36, 0) && KFX Input (1, 36, 0) && Manage Series (1, 2, 11) && Overdrive Link (2, 44, 0) && Quality Check (1, 11, 0) && Search The Internet (1, 8, 1)
Traceback (most recent call last):
  File "calibre_plugins.search_the_internet.config", line 982, in help_link_activated
  File "calibre_plugins.search_the_internet.action", line 279, in show_help
  File "calibre_plugins.search_the_internet.action", line 277, in get_help_file_resource
TypeError: write() argument must be str, not bytes
That's a Python 3 issue. I've fixed one of these recently. It isn't to fix.
davidfor is offline   Reply With Quote
Old 02-06-2021, 05:48 AM   #347
Venia Legendi
Member
Venia Legendi began at the beginning.
 
Venia Legendi's Avatar
 
Posts: 13
Karma: 10
Join Date: Apr 2013
Device: lots of, frequently changing
Help Link in Config → write() argument must be str, not bytes

Hello, thanks for this plugin. I recently realized that calling the help link in the config dialog leads to:

Code:
Traceback (most recent call last):
  File "calibre_plugins.search_the_internet.config", line 982, in help_link_activated
  File "calibre_plugins.search_the_internet.action", line 279, in show_help
  File "calibre_plugins.search_the_internet.action", line 277, in get_help_file_resource
TypeError: write() argument must be str, not bytes
Venia Legendi is offline   Reply With Quote
Advert
Old 02-08-2021, 07:22 PM   #348
RotAnal
Connoisseur
RotAnal can extract oil from cheeseRotAnal can extract oil from cheeseRotAnal can extract oil from cheeseRotAnal can extract oil from cheeseRotAnal can extract oil from cheeseRotAnal can extract oil from cheeseRotAnal can extract oil from cheeseRotAnal can extract oil from cheeseRotAnal can extract oil from cheese
 
RotAnal's Avatar
 
Posts: 87
Karma: 1234
Join Date: Sep 2012
Device: Onyx Boox M92
Sirs,
I have noticed that whenever I have been using Search Google Image Section for a record, and the record has more than one Author, the search could not be accomplished because the **title** is lost in the search and Google just search for the first author. I suspect this issue might be due to the way the ampersand character is managed by PI or Google

http://www.google.com/images?q=%22{author}%22+%22{title}%22

How can I fix this annoying issue?
Thanks for your attention
RotAnal is offline   Reply With Quote
Old 02-08-2021, 09:46 PM   #349
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 RotAnal View Post
Sirs,
I have noticed that whenever I have been using Search Google Image Section for a record, and the record has more than one Author, the search could not be accomplished because the **title** is lost in the search and Google just search for the first author. I suspect this issue might be due to the way the ampersand character is managed by PI or Google

http://www.google.com/images?q=%22{author}%22+%22{title}%22

How can I fix this annoying issue?
Thanks for your attention
That is related to the problem that @lairdb reported above. I haven't had a chance to look at it properly and think about how to fix it.
davidfor is offline   Reply With Quote
Old 02-12-2021, 07:15 AM   #350
bravosx
Connoisseur
bravosx began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Jun 2014
Location: Poland, Żory
Device: Prestigio PER3464B, Onyx Lynx, Lenovo S5000 i Tab4-8"
Plugin has stopped working, does not search for books on Google. Can the author be asked, maybe we can fix it.

Thank you
bravosx is offline   Reply With Quote
Advert
Old 02-12-2021, 10:44 PM   #351
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 bravosx View Post
Plugin has stopped working, does not search for books on Google. Can the author be asked, maybe we can fix it.
Before we can consider fixing it, we need to know what "stopped working" means. Which option are you using that doesn't work? Have you tried editing the search? The searches included in the plugin are just examples. You can edit them to better suit yourself or fix problems.
davidfor is offline   Reply With Quote
Old 02-13-2021, 03:58 AM   #352
bravosx
Connoisseur
bravosx began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Jun 2014
Location: Poland, Żory
Device: Prestigio PER3464B, Onyx Lynx, Lenovo S5000 i Tab4-8"
@davidfor thank you for your interest in my problem.
I've already dealt with it. I replaced the plugin configuration entry:
- it was:
http://www.google.com/#sclient=psy&q=%22{author}%22+%22{title}%22
- changed to:
http://www.google.pl/search?q=inauthor:%22{author}%22++intitle:%22{titl e}%22
and the plugin started searching again.

A plugin has a partial problem when there are two or more authors. Then it searches Google for entries by name only, not searching for the book title.

best regards bravosx

Last edited by bravosx; 02-13-2021 at 04:21 AM.
bravosx is offline   Reply With Quote
Old 02-13-2021, 08:09 AM   #353
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 bravosx View Post
@davidfor thank you for your interest in my problem.
I've already dealt with it. I replaced the plugin configuration entry:
- it was:
http://www.google.com/#sclient=psy&q=%22{author}%22+%22{title}%22
- changed to:
http://www.google.pl/search?q=inauthor:%22{author}%22++intitle:%22{titl e}%22
and the plugin started searching again.

A plugin has a partial problem when there are two or more authors. Then it searches Google for entries by name only, not searching for the book title.
Which is the problem discussed in the previous few posts. I'll fix it when I have time, but, if someone else wants to...
davidfor is offline   Reply With Quote
Old 02-13-2021, 10:20 AM   #354
bravosx
Connoisseur
bravosx began at the beginning.
 
Posts: 99
Karma: 10
Join Date: Jun 2014
Location: Poland, Żory
Device: Prestigio PER3464B, Onyx Lynx, Lenovo S5000 i Tab4-8"
Quote:
Originally Posted by davidfor View Post
... I'll fix it when I have time, but, if someone else wants to...
Ok. I will wait calmly. Thanks.
bravosx is offline   Reply With Quote
Old 03-21-2021, 01:31 PM   #355
Camelot
Connoisseur
Camelot began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Feb 2015
Device: Sony PRS-T1
Can you please support {asin} for Amazon ASIN (if they have time)?

Example: https://www.amazon.de/dp/B08ZDKVH9S/
Code:
http://z2-ec2.images-amazon.com/images/P/{asin}.01.MAIN._SCRM_.jpg
https://m.media-amazon.com/images/I/510jNpXkrwL.jpg (313x500)
http://z2-ec2.images-amazon.com/imag...AIN._SCRM_.jpg (1600x2560)

See https://www.ereader-palace.com/get-h...oks/#cover_url

Thanks.
Camelot is offline   Reply With Quote
Old 03-21-2021, 01:45 PM   #356
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,733
Karma: 6690881
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Camelot View Post
Can you please support {asin} for Amazon ASIN (if they have time)?

Example: https://www.amazon.de/dp/B08ZDKVH9S/
Code:
http://z2-ec2.images-amazon.com/images/P/{asin}.01.MAIN._SCRM_.jpg
https://m.media-amazon.com/images/I/510jNpXkrwL.jpg (313x500)
http://z2-ec2.images-amazon.com/imag...AIN._SCRM_.jpg (1600x2560)

See https://www.ereader-palace.com/get-h...oks/#cover_url

Thanks.
Use {identifiers:select(asin)}
chaley is offline   Reply With Quote
Old 03-21-2021, 02:03 PM   #357
Camelot
Connoisseur
Camelot began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Feb 2015
Device: Sony PRS-T1
Quote:
Originally Posted by chaley View Post
Use {identifiers:select(asin)}
Fantastic thank you.
Camelot is offline   Reply With Quote
Old 04-15-2021, 08:35 PM   #358
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,552
Karma: 61120499
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Oddness with multiple authors:

I was using the Google Images 400x300 search:

Code:
http://www.google.com/images?as_q={author}+%22{title}%22&tbs=isch:1,isz:lt,islt:qsvga,imgo:1&safe=off
I have this book:

Click image for larger version

Name:	2021-04-15 21_31_22-3000 International Recipe Cookbook.png
Views:	196
Size:	134.1 KB
ID:	186638

for some reason the URL for comes through as this, which then shows only the first author:
Code:
https://www.google.com/images?as_q=Elizabeth%20Smart%20&%20Nella%20Whitfield%20&%20Ann%20Knox%20&%20Nina%20Froud%20&%20Kato%20Frank%20&%20Dorothy%20Daly%20&%20Maro%20Duncan%20&%20Elsa%20Behrens%20&%20Irfan%20Orga%20&%20Agnes%20Ryan+%223000%20International%20Recipe%20Cookbook%22&tbs=isch:1,isz:lt,islt:qsvga,imgo:1&safe=off
It also happens for other books:

Code:
https://www.google.com/images?as_q=Herbert%20S.%20Zim%20&%20Robert%20T.%20Michell+%22Butterflies%20and%20Moths%22&tbs=isch:1,isz:lt,islt:qsvga,imgo:1&safe=off
I think this was mentioned a few posts above. any current fix for it?

Last edited by ownedbycats; 04-15-2021 at 08:37 PM.
ownedbycats is online now   Reply With Quote
Old 04-16-2021, 12:49 AM   #359
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
Yes, that is the problem discussed above. No, I have not had a look to fix it yet.
davidfor is offline   Reply With Quote
Old 04-16-2021, 06:26 AM   #360
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,085
Karma: 1948136
Join Date: Aug 2015
Device: Kindle
Replacing it with the below seems to work:

Code:
http://www.google.com/images?as_q={authors:re(( & |\s+),+)}+%22{title}%22&tbs=isch:1,isz:lt,islt:qsvga,imgo:1&safe=off
capink is offline   Reply With Quote
Reply

Tags
book details, search the internet

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Any web-to-epub plugin for internet browser? bthoven ePub 7 07-10-2011 05:14 AM
Fictionwise Browser Search Plugin Zero9 Deals and Resources (No Self-Promotion or Affiliate Links) 17 07-27-2009 03:15 PM
Diesel eBooks Browser Search Plugin Zero9 Deals and Resources (No Self-Promotion or Affiliate Links) 10 07-27-2009 12:16 PM
eReader.com Browser Search Plugin Zero9 Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-24-2009 09:44 PM
BooksOnBoard Browser Search Plugin Zero9 Deals and Resources (No Self-Promotion or Affiliate Links) 10 07-24-2009 03:27 PM


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


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