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, 10: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: 21,173
Karma: 36811068
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, 06:48 AM   #347
Venia Legendi
Junior Member
Venia Legendi began at the beginning.
 
Venia Legendi's Avatar
 
Posts: 5
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
Old 02-08-2021, 08: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, 10: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: 21,173
Karma: 36811068
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, 08:15 AM   #350
bravosx
Connoisseur
bravosx began at the beginning.
 
Posts: 67
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
Old 02-12-2021, 11: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: 21,173
Karma: 36811068
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, 04:58 AM   #352
bravosx
Connoisseur
bravosx began at the beginning.
 
Posts: 67
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 05:21 AM.
bravosx is offline   Reply With Quote
Old 02-13-2021, 09: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: 21,173
Karma: 36811068
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, 11:20 AM   #354
bravosx
Connoisseur
bravosx began at the beginning.
 
Posts: 67
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
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 06:14 AM
Fictionwise Browser Search Plugin Zero9 Deals and Resources (No Self-Promotion or Affiliate Links) 17 07-27-2009 04:15 PM
Diesel eBooks Browser Search Plugin Zero9 Deals and Resources (No Self-Promotion or Affiliate Links) 10 07-27-2009 01:16 PM
eReader.com Browser Search Plugin Zero9 Deals and Resources (No Self-Promotion or Affiliate Links) 0 07-24-2009 10:44 PM
BooksOnBoard Browser Search Plugin Zero9 Deals and Resources (No Self-Promotion or Affiliate Links) 10 07-24-2009 04:27 PM


All times are GMT -4. The time now is 12:52 AM.


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