11-01-2021, 07:52 AM | #106 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Update to version 1.8.3
I have just updated the plugin to fix the recent problems with connecting to the Kobo site. It appears to be some bot protection has been added.
The change is:
I don't know if this will last. Calibre should announce the update in the next hour or so. If there are any problems, please report them here. |
11-02-2021, 04:32 PM | #107 |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2021
Device: Kobo Glo HD (/Forma)
|
Sorry for bringing up an older discussion, but I have a usecase for this. As the plugin works right now I get results from the Swedish Kobo store, which for some reason has replaced the # in the series name/number with "Nummer", so when getting data from the Swedish localization all my series end with "Nummer" which is quite annoying. For now I've downloaded the plugin and edited SEARCH_PATH by hand, which seems to have solved the issue for now. But adding a setting for selecting language (country doesn't seem as important, as it's the localization/translation that seems bad from what I can tell), would be appreciated so we with badly translated kobo stores don't have to manually update the plugin
|
11-03-2021, 12:46 AM | #108 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
11-03-2021, 03:01 AM | #109 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Nov 2021
Device: Kobo Glo HD (/Forma)
|
Quote:
Thanks for the fix (I haven't tried it out yet though, as I'm still on my "custom" version right now). |
|
02-20-2022, 01:26 PM | #110 |
Member
Posts: 21
Karma: 10
Join Date: Sep 2020
Device: Kobo Libra H2O
|
Hello,
Looks like the plugin has stopped working (v1.8.3, calibre 5.37.0). You will find below a log file example (same with other books) : calibre, version 5.37.0 ERREUR : Aucune correspondance trouvée: <p>Impossible de trouver un livre correspondant à votre recherche. Essayer de faire une recherche <b>moins spécifique</b>. Par exemple, utiliser seulement le nom de famille de l'auteur et un mot distinctif du titre.<p> Pour voir le journal en entier, cliquer "Afficher les détails. Running identify query with parameters: {'title': 'OLIVIER TWIST', 'authors': ['Charles Dickens'], 'identifiers': {}, 'timeout': 30} Using plugins: Kobo Books (1, 8, 3) The log from individual plugins is below ****************************** Kobo Books (1, 8, 3) ****************************** Found 0 results Downloading from Kobo Books took 30.16534996032715 identify - title: "OLIVIER TWIST" authors= "['Charles Dickens']" create_query - title: "OLIVIER TWIST" create_query - after decode title: "OLIVIER TWIST" create_query - title_tokens: "['OLIVIER', 'TWIST']" Querying: https://www.kobo.com/search?Query=OL...clanguages=all Failed to make identify query: 'https://www.kobo.com/search?Query=OLIVIER+TWIST+Charles+Dickens&fcmedia =Book&fclanguages=all' Traceback (most recent call last): File "mechanize\_urllib2_fork.py", line 1238, in do_open File "http\client.py", line 1347, in getresponse File "http\client.py", line 307, in begin File "http\client.py", line 268, in _read_status File "socket.py", line 669, in readinto File "ssl.py", line 1241, in recv_into File "ssl.py", line 1099, in read socket.timeout: The read operation timed out During handling of the above exception, another exception occurred: Traceback (most recent call last): File "calibre_plugins.kobobooks.__init__", line 173, in identify File "mechanize\_mechanize.py", line 241, in open_novisit File "mechanize\_mechanize.py", line 287, in _mech_open File "mechanize\_opener.py", line 193, in open File "mechanize\_urllib2_fork.py", line 425, in _open File "mechanize\_urllib2_fork.py", line 414, in _call_chain File "calibre\utils\browser.py", line 28, in https_open File "mechanize\_urllib2_fork.py", line 1240, in do_open urllib.error.URLError: <urlopen error The read operation timed out> ************************************************** ****************************** The identify phase took 30.35 seconds The longest time (30.165350) was taken by: Kobo Books Merging results from different sources We have 0 merged results, merging took: 0.00 seconds |
02-20-2022, 11:44 PM | #111 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
It isn't working here either. From a very quick look I did yesterday, it looks like Kobo have changed something in the site. I suspect they have changed how it is hosted or put something in front of it for protection. They have been using Akamai for hosting or protection, so they might have turned on more protection and this is blocking it.
I will have a look when I can, but, it will probably be a few days. And I won't be to surprised if it cannot be fixed. |
02-21-2022, 02:18 AM | #112 |
Member
Posts: 21
Karma: 10
Join Date: Sep 2020
Device: Kobo Libra H2O
|
Thanks for the feedback. Hopefully it can still work
|
02-28-2022, 02:16 PM | #113 |
Diligent dilettante
Posts: 3,416
Karma: 48736498
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
Another "can't find" from Kobo. I bought this one a couple of days ago, and even tried manually adding the ISBN listed on its Kobo page:
Spoiler:
I then realized I hadn't added book 2 in the series, so did that one, and Calibre did find metadata - from Amazon. A pox on Kobo for breaking this very useful plugin! |
03-02-2022, 12:01 AM | #114 |
Gentleman and scholar
Posts: 10,971
Karma: 108309641
Join Date: Jun 2015
Location: Space City, Texas
Device: Clara HD; Nook ST w/Glowlight, (2015) Glowlight Plus, Paperwhite 3
|
Glad to see it's not just me that is no longer getting results from Kobo.
|
03-02-2022, 04:04 AM | #115 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
As I said above, it is a change in the site. Or how it is hosted. I have not had much time for it, but, it doesn't return anything when I use curl to get the page. That will make it very hard to fix and might mean it cannot be.
|
03-02-2022, 04:29 AM | #116 |
Diligent dilettante
Posts: 3,416
Karma: 48736498
Join Date: Sep 2019
Location: in my mind
Device: Kobo Sage; Kobo Libra H2O
|
Hence my imprecations against Kobo. Your plugin was invaluable, especially since I buy maybe 3 books a year from any site other than Kobo.
|
03-04-2022, 05:00 AM | #117 |
Connoisseur
Posts: 60
Karma: 1852838
Join Date: Jul 2007
Location: Russia
Device: Kobo Aura H₂O & iPad Pro 2020 12.9"
|
interestingly, my proposed changes still work fine (I had to remove your user agent override from 1.8.3 though)
in __init__.py: Code:
def set_extra_headers(self, br): br.set_current_header('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/*,*/*;q=0.8') br.set_current_header('Accept-Language', 'en-US,en-UK,en;q=0.9,ja;q=0.8') br.set_current_header('Accept-Encoding', 'gzip') br = self.browser to br = self.set_extra_headers(self.browser) also from testing, `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15` user agent seems to be the most reliable at the moment, but yes, it's a game of cat and mouse when there's no documentation and protection can change any moment Last edited by 13xforever; 03-04-2022 at 05:14 AM. |
03-04-2022, 02:10 PM | #118 | |
Resident Curmudgeon
Posts: 73,866
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
03-05-2022, 04:37 AM | #119 |
Connoisseur
Posts: 60
Karma: 1852838
Join Date: Jul 2007
Location: Russia
Device: Kobo Aura H₂O & iPad Pro 2020 12.9"
|
It's a new function similar to others, but I wouldn't advise you to modify the code if you do not understand what you're doing as you can break it completely instead
|
03-05-2022, 05:03 AM | #120 |
Resident Curmudgeon
Posts: 73,866
Karma: 128597114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] Goodreads | kiwidude | Plugins | 730 | 03-23-2024 10:24 PM |
[Metadata Source Plugin] BOL.com (DE) | Pr.BarnArt | Plugins | 52 | 06-01-2023 04:50 PM |
[Metadata Source Plugin] Comicvine | chewt0y | Plugins | 88 | 07-11-2022 12:00 PM |
[Metadata Source Plugin] INMONDADORI | Pr.BarnArt | Plugins | 7 | 12-03-2021 12:56 PM |