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,606
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
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
Connoisseur
darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.darthyoda6 can talk all four legs off a donkey... then persuade it to go for a walk.
 
Posts: 93
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.
darthyoda6 is offline   Reply With Quote
Advert
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,606
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
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,606
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
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,606
Karma: 2092290
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.
kiwidude is offline   Reply With Quote
Advert
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,606
Karma: 2092290
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.
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,606
Karma: 2092290
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 03:14 PM. Reason: Removed attachment as officially released
kiwidude is offline   Reply With Quote
Old 06-03-2011, 10:02 AM   #23
chaley
Grand Sorcerer
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: 11,704
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
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,606
Karma: 2092290
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.
kiwidude is offline   Reply With Quote
Old 06-03-2011, 12:52 PM   #25
chaley
Grand Sorcerer
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: 11,704
Karma: 6658935
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2


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,606
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
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,606
Karma: 2092290
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
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
Zealot
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: 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 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,606
Karma: 2092290
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!
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] FictionDB kiwidude Plugins 129 03-16-2024 11:14 PM
Read a book's metadata in a Metadata source plugin? J-H Development 2 03-30-2021 09:08 AM
[Metadata Source Plugin] Empty Plugin? (Fake Identifier) mneimeyer Plugins 3 11-11-2019 08:07 PM
Unique Key Name with Barnes and Noble Plugin laughingdragons Plugins 4 07-22-2013 09:34 PM
[Metadata Source Plugin] Amazon.it nandocuci Plugins 2 05-18-2011 02:36 AM


All times are GMT -4. The time now is 11:47 PM.


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