10-04-2020, 09:30 AM | #136 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2014
Device: Kindle PW2; Nook Glow
|
B&N plugin failed
Plugin error
B&N v1.2.15 calibre, version 5.1.0 ERROR: Install plugin failed: A problem occurred while installing this plugin. This plugin will now be uninstalled. Please post the error message in details below into the forum thread for this plugin and restart calibre. Traceback (most recent call last): File "site-packages\calibre\gui2\dialogs\plugin_updater.py", line 731, in _install_clicked File "site-packages\calibre\customize\ui.py", line 472, in add_plugin File "site-packages\calibre\customize\ui.py", line 61, in load_plugin File "site-packages\calibre\customize\zipplugin.py", line 200, in load File "site-packages\polyglot\builtins.py", line 123, in reload File "importlib\__init__.py", line 169, in reload File "<frozen importlib._bootstrap>", line 602, in _exec File "site-packages\calibre\customize\zipplugin.py", line 184, in load_module File "calibre_plugins.barnes_noble.__init__", line 11, in <module> ImportError: cannot import name 'quote' from 'urllib' (C:\Program Files (x86)\Calibre2\\app\pylib.zip\urllib\__init__.pyc) |
10-04-2020, 11:05 AM | #137 | |
Grand Sorcerer
Posts: 12,040
Karma: 7257323
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
@MikeN68: you need to update the plugin to the version found on this post. |
|
Advert | |
|
10-04-2020, 11:39 AM | #138 | |
Wizard
Posts: 2,128
Karma: 8796706
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
|
Quote:
bernie |
|
06-28-2021, 01:46 AM | #139 |
Connoisseur
Posts: 71
Karma: 800000
Join Date: Jun 2021
Device: Kindle Paperwhite (PW1|PW3|PW4), Kindle Voyage
|
This plugin leaves a bad link in the IDs.
Simple fix in the "__init__.py" file change BROWSE_URL = 'http://www.barnesandnoble.com' to BROWSE_URL = 'http://www.barnesandnoble.com/w' I don't think it will mess anything else up but no guarantees as I use the IDs almost solely for the links as my books already have their metadata & anything I'm changing I'm doing manually |
08-11-2021, 11:37 AM | #140 |
Enthusiast
Posts: 33
Karma: 10
Join Date: Jan 2012
Location: Texas, USA
Device: Kindle Paperwhite 4
|
Anyone else having problems with getting metadata from B&N? I'm getting the following results whenever I try.
Code:
****************************** Barnes & Noble (1, 2, 16) ****************************** Found 0 results Downloading from Barnes & Noble took 0.7885348796844482 Querying: http://search.barnesandnoble.com/s/9780345379337?EAN=9780345379337 match location: 'https://www.barnesandnoble.com/' B&N url: 'https://www.barnesandnoble.com/' Error parsing Barnes & Noble id for url: 'https://www.barnesandnoble.com/' Traceback (most recent call last): File "calibre_plugins.barnes_noble.worker", line 86, in parse_details File "calibre_plugins.barnes_noble.worker", line 160, in parse_barnes_noble_id AttributeError: 'NoneType' object has no attribute 'groups' Aborting search for title Could not find title/authors/Barnes & Noble id for 'https://www.barnesandnoble.com/' Barnes & Noble: None Title: None Authors: None Code:
BASE_URL = 'http://search.barnesandnoble.com' Code:
BASE_URL = 'http://www.barnesandnoble.com' Last edited by razorsoup; 08-11-2021 at 12:26 PM. |
Advert | |
|
08-11-2021, 11:07 PM | #141 |
Enthusiast
Posts: 33
Karma: 10
Join Date: Jan 2012
Location: Texas, USA
Device: Kindle Paperwhite 4
|
Another bug: If title and author are blank, the plugin doesn't even try using the ISBN to lookup the book. If the title and author have any value at all, the plugin will successfully use the ISBN to lookup the book.
Here's the error I receive with title and author blank Code:
****************************** Barnes & Noble (1, 2, 16) ****************************** Found 0 results Downloading from Barnes & Noble took 0.05497002601623535 Plugin Barnes & Noble failed Traceback (most recent call last): File "calibre\ebooks\metadata\sources\identify.py", line 47, in run File "calibre_plugins.barnes_noble.__init__", line 137, in identify File "calibre\ebooks\unihandecode\__init__.py", line 51, in decode TypeError: normalize() argument 2 must be str, not None ******************************************************************************** Code:
if title: title = get_udc().decode(title) if authors: authors = [get_udc().decode(a) for a in authors] Last edited by razorsoup; 08-11-2021 at 11:14 PM. |
08-11-2021, 11:51 PM | #142 |
Grand Sorcerer
Posts: 24,905
Karma: 47303822
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
There is no one maintaining the plugin. If you have changes that fix problems, post the updated version for others to try. Then we can arrange to release the updated version if there are no problems.
|
08-12-2021, 01:07 AM | #143 |
Enthusiast
Posts: 33
Karma: 10
Join Date: Jan 2012
Location: Texas, USA
Device: Kindle Paperwhite 4
|
Here's my updated version that fixes the two errors I found. Hopefully my changes don't introduce any other errors.
I'm not happy with what the plugin grabs as the ID from B&N but I haven't touched that because it's not a huge issue and changing that will introduce issues with any books that have the current ID type. Also, I'm not a programmer so I'm reluctant to change too much without knowing for certain what that will affect. |
09-09-2022, 02:11 PM | #144 |
Calibre Plugins Developer
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.3.0 Released
Changes in this release:
This plugin hadn't been "officially" updated in a while and was in a bit of a broken state, hopefully this should get it running properly again. Or at least it did for the books I tested it with... |
09-10-2022, 09:12 AM | #145 | |
Enthusiast
Posts: 46
Karma: 182
Join Date: Aug 2011
Location: Boynton Beach, Florida
Device: Kindle Oasis 2, Kindle Paperwhite 3
|
Thank you so much!
Quote:
|
|
10-16-2022, 12:01 PM | #146 |
Calibre Plugins Developer
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Barnes & Noble v1.4.0 Released
Release Notes:
https://github.com/kiwidude68/calibr...s_noble-v1.4.0 |
03-12-2023, 01:52 PM | #147 |
Junior Member
Posts: 1
Karma: 10
Join Date: Mar 2023
Device: none
|
The plugin is totally broken
The Barnes & Noble results are always always wrong, unless the books are exclusive to B&N.
I tried adjusting the number of searches, but got following error. Code:
calibre, version 6.14.0 FEHLER: Unbehandelter Ausnahmefehler: <b>AttributeError</b>:'ConfigWidget' object has no attribute 'toc_checkbox' calibre 6.14 embedded-python: True Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE') ('Windows', '10', '10.0.19045') Python 3.10.1 Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free') Interface language: de Successfully initialized third party plugins: Gather KFX-ZIP (from KFX Input) (1, 51, 0) && DeDRM (7, 1, 0) && Package KFX (from KFX Input) (1, 51, 0) && Amazon.com Multiple Countries (1, 0, 0) && Barnes & Noble (1, 4, 0) && Check Books (0, 1, 5) && Extract ISBN (1, 6, 0) && FictionDB (1, 3, 0) && Find Duplicates (1, 10, 7) && Goodreads (1, 7, 3) && Goodreads Sync (1, 16, 2) && KFX metadata reader (from KFX Input) (1, 51, 0) && KFX Input (1, 51, 0) && Kindle hi-res covers (0, 5, 0) && LibraryThing Match (0, 2, 1) && Manage Series (1, 5, 0) && Obok DeDRM (7, 1, 0) && Quality Check (1, 13, 3) && QuarantineAndScrub (3, 6, 120) && Search The Internet (1, 10, 0) && WordDumb (3, 29, 0) Traceback (most recent call last): File "calibre\gui2\dialogs\plugin_updater.py", line 777, in _configure_clicked File "calibre\customize\__init__.py", line 177, in do_user_config File "calibre\ebooks\metadata\sources\base.py", line 270, in save_settings File "calibre_plugins.barnes_noble.config", line 74, in commit AttributeError: 'ConfigWidget' object has no attribute 'toc_checkbox' |
03-19-2023, 10:06 PM | #148 |
Calibre Plugins Developer
Posts: 4,688
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Hi aragonit, thanks for posting that issue. Unfortunately my computer is still a few more weeks away from arriving before I can start looking at potentially doing plugin work again, but I will add this to the todo list.
|
03-20-2023, 06:02 AM | #149 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
@aragonit Just remove the penultimate line from config.py and the plugin will work.
Exactly this: Code:
new_prefs[KEY_APPEND_TOC] = self.toc_checkbox.checkState() == Qt.Checked Last edited by BeckyEbook; 04-03-2023 at 07:34 AM. Reason: Attached file deleted. The problem was solved in the official version 1.5.0. |
03-25-2023, 10:54 AM | #150 |
Custom User Title
Posts: 9,575
Karma: 64960983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Unexpected behaviour: Sometimes if I want to selectively pick identifiers, I copy the link from the download window and then use the paste button:
For most identifiers, this gives me the ID. For B&N, it gives me a url:. If needed for replication, here's the book, searched by author & title. When I added it in the regular way I got barnesnoble:w/death-by-chocolate-sally-berneathy/1101711347. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Metadata Source Plugin] FictionDB | kiwidude | Plugins | 129 | 03-17-2024 12:14 AM |
Read a book's metadata in a Metadata source plugin? | J-H | Development | 2 | 03-30-2021 10:08 AM |
[Metadata Source Plugin] Empty Plugin? (Fake Identifier) | mneimeyer | Plugins | 3 | 11-11-2019 09:07 PM |
Unique Key Name with Barnes and Noble Plugin | laughingdragons | Plugins | 4 | 07-22-2013 10:34 PM |
[Metadata Source Plugin] Amazon.it | nandocuci | Plugins | 2 | 05-18-2011 03:36 AM |