|
|
#16 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
v1.0.4 Released
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#17 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10
Karma: 20000
Join Date: Nov 2010
Location: Canada
Device: none
|
Thanks, 'cause they also have TOC's on computer books too.
|
|
|
|
|
Enthusiast
|
|
|
|
#18 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
v1.0.5 Released
Changes in this release:
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#19 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
v1.0.6 Released
Changes in this release:
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#20 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#21 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#22 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal Last edited by kiwidude; 06-05-2011 at 03:14 PM. Reason: Removed attachment as officially released |
|
|
|
|
|
#23 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
About the rating ...
xpath something like
Code:
"//span[@class="rating_widget"]/span/@class" Code:
"//span[contains(@class, "section_updateRating")]/@class"
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#24 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#25 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,853
Karma: 285886
Join Date: Jan 2010
Location: France
Device: Sony PRS-300, HTC WM6.5, Samsung Galaxy Nexus, HTC Sensation
|
![]() 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.
__________________
Support calibre developers at no cost to you by using calibre's get books feature. Use Calibre Companion to wirelessly connect your Android phone or tablet to calibre charles.haleys.org/calibre |
|
|
|
|
|
#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!
|
|
|
|
|
|
#27 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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...
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#28 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
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.
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
|
|
#29 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 88
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 06:55 PM. |
|
|
|
|
|
#30 |
|
calibre/Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,088
Karma: 1211092
Join Date: Oct 2010
Location: London, UK
Device: Kindle 3 3G, iPad 2, iPad 3
|
@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!
__________________
Like my calibre plugins or Sigil work? Say thanks with PayPal |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Metadata Source Plugin] Goodreads | kiwidude | Plugins | 157 | 05-07-2013 02:34 PM |
| [Old Thread] Problem reading converted EPUB & PDB on Barnes & Noble eReader | webfolk | Calibre | 3 | 01-09-2012 10:08 PM |
| Small Change to Metadata Source plugin API | kovidgoyal | Development | 2 | 04-25-2011 02:55 PM |
| Neo Barnes & Noble from the UK | Fith | BeBook | 5 | 04-26-2010 05:20 PM |
| Barnes & Noble | mycart | Introduce Yourself | 5 | 02-03-2010 12:14 PM |