05-20-2011, 09:54 AM | #16 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.0.4 Released
Changes in this release:
|
05-20-2011, 03:18 PM | #17 |
Connoisseur
Posts: 94
Karma: 124056
Join Date: Nov 2010
Location: Canada
Device: Kobo Clara HD, Kindle Paperwhite 10th Gen, Kindle 7th Gen
|
Thanks, 'cause they also have TOC's on computer books too.
|
Advert | |
|
05-21-2011, 09:39 AM | #18 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.0.5 Released
Changes in this release:
|
05-29-2011, 06:46 PM | #19 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.0.6 Released
Changes in this release:
|
06-02-2011, 04:37 PM | #20 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Not that anyone else has reported this yet, but it looks like B&N have completely redesigned their website. Unsurpringly this plugin won't work any more. I will start looking at a rewrite now.
|
Advert | |
|
06-02-2011, 08:26 PM | #21 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Ok, given that B&N have made two more structural changes since my last post and the current state of play is an inconsistent mess depending on the book I'm going to give this a day or two to settle down before I publish the next version. I don't know how they do their release process but it clearly isn't anything close to what I would do with a commercial app.
One minor unfortunate impact of their changes is that the plugin now has to do an extra hop to get the large image (if it exists). Maybe they did that intentionally to discourage robots etc. However in its current state it also means that when you click on the cover of a book on their detail page you get a popup window that is blank when they have no image. Utterly crap, so much for their testing process. |
06-03-2011, 10:42 AM | #22 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Beta for next B&N plugin release
Attached is a version which works with the B&N website after its revamp. As I mentioned above there is a few things broken on their website that I am not sure if/when they will fix so I want to give it a little more time before I officially release this.
From my quick testing, I "think" the plugin is fully working. There are some changes forced by their website changes. For instance B&N now only publish ratings in the web page rounded to a half star based system, rather than a numerical value like they had previously. Also I am completely unable to get ratings for textbooks (fiction books are fine). Ratings on textbooks are rendered dynamically using javascript to allow hovering to change the rating etc. If someone fancies themselves a challenge then by all means please tell me where I can scrape the "starting value" from in the page as I lost the will to live rather quickly. I am sure others would be grateful if you can figure it out As an example, go to this url: http://www.barnesandnoble.com/w/c-pr...han/1000055175 You can see it has a 4.5 star rating on the right-side - as for how it gets that value I welcome the answer. Regardless, a version for you to test is attached to this post, let me know of any issues before I officially release it. Last edited by kiwidude; 06-05-2011 at 04:14 PM. Reason: Removed attachment as officially released |
06-03-2011, 11:02 AM | #23 |
Grand Sorcerer
Posts: 12,099
Karma: 7908993
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
About the rating ...
xpath something like
Code:
"//span[@class="rating_widget"]/span/@class" Code:
"//span[contains(@class, "section_updateRating")]/@class" |
06-03-2011, 01:12 PM | #24 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@chaley - thx very much, I knew someone could figure it out. I had the content "folded" in notepad++ and had never noticed that inner span.
New plugin version attached to my post above. |
06-03-2011, 01:52 PM | #25 |
Grand Sorcerer
Posts: 12,099
Karma: 7908993
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Yea, that is a problem. The first thing I do when working with html and xpath is paste the source into an html editor and use its reformat function to prettify it. Without that, the html almost always completely unreadable. |
06-05-2011, 03:49 PM | #26 |
Junior Member
Posts: 4
Karma: 12
Join Date: May 2010
Device: Nook
|
So far, the updated beta is working quite well. I have switch my metadata sources exclusively over to B&N and Goodreads, and the quality of the notes and covers has been incredible!
|
06-05-2011, 04:16 PM | #27 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1 Released
Changes in this release:
Thx Jeff for the feedback. Things seem to have stablised the last few days so hopefully they are "done" making changes for now. Until the next time they break things... |
06-16-2011, 06:35 PM | #28 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
v1.1.1 Released
Changes in this release:
As I wrote on the FantasticFiction update the above changes have come from the opportunity for some "hands-on usage" over the last few days. This should increase both the number and quality of matches against the B&N website for this plugin. |
08-04-2011, 07:50 PM | #29 |
Zealot
Posts: 100
Karma: 400000
Join Date: Jul 2010
Device: iPad 2 64GB
|
Hi kiwidude,
For some reason this plugin downloads the "Details" cover instead of the "Front" one. For example, if you look up the ISBN 9781593080778 you get to: http://search.barnesandnoble.com/Ori...&pos=-1&ugrp=2 (or this one, ISBN: 9781593082079) Click on the cover and it will open a new page with the "Details" cover selected, which is useless... but you can choose "Front" and then it will show a good cover. Last edited by Caleb666; 08-04-2011 at 07:55 PM. |
08-04-2011, 08:28 PM | #30 |
Calibre Plugins Developer
Posts: 4,692
Karma: 2162246
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
@Caleb666 - yes I had noticed a few of those "odd" covers coming through, you can understand why when for most books there is just a single cover and hence the one that appears on the details page by default is the one it should download.
Looks like I will have to investigate some more complex logic to try to detect this situation and download the desired "front" cover - it is on the list to take a look at sometime. Thanks for the detailed info, requests this detailed make life much easier! |
|
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 |