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 05-20-2011, 08:54 AM   #16
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.0.4 Released

Changes in this release:
  • Add option to append TOC from website Features tab to the comments field (available on B&N Textbooks)
kiwidude is offline   Reply With Quote
Old 05-20-2011, 02:18 PM   #17
darthyoda6
Enthusiast
darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.darthyoda6 can self-interpret dreams as they happen.
 
Posts: 32
Karma: 20874
Join Date: Nov 2010
Location: Canada
Device: Kobo Glo, Nexus 7 2012, Acer Iconia W510
Thanks, 'cause they also have TOC's on computer books too.
darthyoda6 is offline   Reply With Quote
Old 05-21-2011, 08:39 AM   #18
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.0.5 Released

Changes in this release:
  • Respond to change to website layout which prevented metadata download working
kiwidude is offline   Reply With Quote
Old 05-29-2011, 05:46 PM   #19
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.0.6 Released

Changes in this release:
  • When an ISBN is not directly found, process the search results page
kiwidude is offline   Reply With Quote
Old 06-02-2011, 03:37 PM   #20
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
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.
kiwidude is offline   Reply With Quote
Old 06-02-2011, 07:26 PM   #21
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
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.
kiwidude is offline   Reply With Quote
Old 06-03-2011, 09:42 AM   #22
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
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 03:14 PM. Reason: Removed attachment as officially released
kiwidude is offline   Reply With Quote
Old 06-03-2011, 10:02 AM   #23
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,280
Karma: 821512
Join Date: Jan 2010
Location: France
Device: Many android devices
About the rating ...

xpath something like
Code:
"//span[@class="rating_widget"]/span/@class"
or
Code:
"//span[contains(@class, "section_updateRating")]/@class"
These will return a string containing "avg-NNN section_updateRating" where NNN is the rating. For the C Programming book, the string is "avg-4h section_updateRating", where the 'h' means 1/2. For another book I see "avg-3 section_updateRating" and it shows 3 stars.
chaley is offline   Reply With Quote
Old 06-03-2011, 12:12 PM   #24
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@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.
kiwidude is offline   Reply With Quote
Old 06-03-2011, 12:52 PM   #25
chaley
"chaley", not "charley"
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 5,280
Karma: 821512
Join Date: Jan 2010
Location: France
Device: Many android devices


Quote:
Originally Posted by kiwidude View Post
@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.
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.
chaley is offline   Reply With Quote
Old 06-05-2011, 02:49 PM   #26
Jeff_R
Junior Member
Jeff_R began at the beginning.
 
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!
Jeff_R is offline   Reply With Quote
Old 06-05-2011, 03:16 PM   #27
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.1 Released

Changes in this release:
  • Rewritten to support new B&N website

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...
kiwidude is offline   Reply With Quote
Old 06-16-2011, 05:35 PM   #28
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.1.1 Released

Changes in this release:
  • Support additional noresults url location after rewrite when lookup by ISBN
  • Alter the details URL looked up to prevent an infinite loop on some books due to B&N website error
  • If the main format returned is not acceptable (e.g. Audiobook) look for an "Also Available As:" section
  • Reorder priority of matching results to those with shortest titles (to de-prioritise box sets)
  • Strip '?' from title based lookups
  • For non ascii names, ensure the comparison is done with non-asii equivalents

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.
kiwidude is offline   Reply With Quote
Old 08-04-2011, 06:50 PM   #29
Caleb666
Connoisseur
Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.Caleb666 ought to be getting tired of karma fortunes by now.
 
Posts: 93
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.
Caleb666 is offline   Reply With Quote
Old 08-04-2011, 07:28 PM   #30
kiwidude
calibre/Sigil Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,224
Karma: 1334002
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@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!
kiwidude is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Metadata Source Plugin] Goodreads kiwidude Plugins 212 08-30-2014 04:21 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


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


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