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-08-2011, 01:12 PM   #1
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
[Metadata Source Plugin] Barnes & Noble

This plugin offers another download source for book metadata including some excellent quality covers by retrieving from www.barnesandnoble.com.

As with the Goodreads plugin it is designed to either supplement or replace the metadata plugins that come with Calibre. Unlike the Goodreads plugin you cannot get any get any tags (genres) from this plugin as Barnes & Noble do not have any such information on a book detail page. If that changes in future I can look to support that.

However it does have higher quality covers available in larger sizes than many of the other metadata plugins offer, as well as series information like Goodreads.

Main Features of v1.2.11
  • Can retrieve title, author, series, isbn, comments, rating, publisher, publication date and covers
  • Also retrieves a barnes & noble id, which is really just a combination of isbn and book information that can be used to directly jump to the page for a specific book from the book details pane (like Goodreads/ISBN etc).
  • Option to customise the number of ISBN editions to consider when doing title/author searches. Set this to 1 for maximum download speed, with a risk that the first edition chosen does not have a large cover available.
  • Option to retrieve all contributors to a book as an author. By default this is turned off, however B&N is able to provide illustrators, editors etc should you want these retrieved.
  • Option to append the TOC from the Features tab of the website for a book to the comments. Only available on some books like Textbooks, default is turned off.

Special Notes:
  • Requires Calibre 0.8 or later.

Installation Notes:
  • Download the attached zip file and install the plugin as described in the Introduction to plugins thread.
  • Note that this is not a GUI plugin so it is not intended/cannot be added to context menus/toolbars etc.

Paypal Donations:
  • If you find this or any of my other plugins useful please feel free to show your appreciation. I have spent many hundreds of unpaid hours in their development and support so any encouragement for me to continue is appreciated!

Version History:
Spoiler:

Version 1.2.12 - 08 Sep 2013
Compatibility with calibre 2.0

Version 1.2.11 - 08 Sep 2013
Updated for changes to B&N website

Version 1.2.10 - 15 Apr 2013
Fix the URL hyperlink when clicking from book details panel to reflect changes to website

Version 1.2.9 - 27 Dec 2012
Updates for changes to B&N website

Version 1.2.8 - 01 Jul 2012
Use a different search URL for title/author searches which seems to give better search results

Version 1.2.7 - 23 Jun 2012
Fix logic for extracting series from title due to B&N website changes
Improve the image not available exclusion checking

Version 1.2.6 - 07 Jun 2012
Further tweaking to improve matching of search results to match latest website layout

Version 1.2.5 - 01 Jun 2012
Improve the title/author matching logic for new website layout
Ensure "[NOOK Book]" is always stripped from the title

Version 1.2.4 - 29 Apr 2012
Ensure the "Image not available" images are excluded

Version 1.2.3 - 16 Apr 2012
More B&N website changes - if fallback to title/author search, just use a keyword search
When matching results for title/author, handle new website page layout

Version 1.2.2 - 06 Mar 2012
Fix for change to B&N website affecting the comments field.

Version 1.2.1 - 25 Nov 2011
Add back support for the old style website pages as B&N haven't completely migrated yet.

Version 1.2 - 22 Nov 2011
Rewritten to support new B&N website for non textbooks

Version 1.1.3 - 25 Aug 2011
Change logic for determining image directory to handle smaller numbered images

Version 1.1.2 - 06 Aug 2011
Grab the front cover when there are multiple covers available
Support change to website where wgt-ProductTitle class titles no longer inside a <span>

Version 1.1.1 - 16 Jun 2011
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

Version 1.1 - 05 Jun 2011
Rewritten to support new B&N website

Version 1.0.6 - 29 May 2011
When an ISBN is not directly found, process the search results page

Version 1.0.5 - 21 May 2011
Respond to change to website layout which prevented metadata download working

Version 1.0.4 - 20 May 2011
Add option to append TOC from website Features tab to the comments field (available on B&N Textbooks)

Version 1.0.3 - 13 May 2011
Remove some debugging stuff from the log
Strip hyperlinks text from the comments since these don't get retained and just confuse the output

Version 1.0.2 - 09 May 2011
Make sure that Image not available gifs are not returned as fallback covers

Version 1.0.1 - 09 May 2011
Add "Audio" to list of excluded format types
Fix multiple authors being returned when they have contribution type in brackets after them
Add a config option (like Goodreads) to return all contributing authors (off by default)
Modify prioritisation of results to increase chance of getting a large cover when multiple have covers

Version 1.0 - 08 May 2011
Initial release of plugin

Attached Thumbnails
Click image for larger version

Name:	Screenshot_1_Configuration.png
Views:	1002
Size:	32.1 KB
ID:	71107  
Attached Files
File Type: zip Barnes & Noble-qt5.zip (37.2 KB, 6372 views)

Last edited by kovidgoyal; 07-21-2014 at 02:28 PM. Reason: v1.2.12 Released
kiwidude is offline   Reply With Quote
Old 05-09-2011, 01:56 AM   #2
bookmonster
Member
bookmonster began at the beginning.
 
bookmonster's Avatar
 
Posts: 13
Karma: 10
Join Date: Mar 2010
Device: Kindle 2, Kindle 3
B&N has always been my FAVORITE source for covers! Kiwidude, YOU ROCK!!!!!!!!!!!!!
bookmonster is offline   Reply With Quote
Old 05-09-2011, 04:57 AM   #3
lgladen
Member
lgladen has a complete set of Star Wars action figures.lgladen has a complete set of Star Wars action figures.lgladen has a complete set of Star Wars action figures.
 
Posts: 19
Karma: 258
Join Date: Feb 2011
Device: evo
Kiwidude - The B&N plugin seems to be inserting commas as well as "&" signs in between multiple authors when downloading metadata. Checked the download log and B&N shows (for example): Katherine Maclean, & Polly Freas (editor), & Kelly Freas (editor)
lgladen is offline   Reply With Quote
Old 05-09-2011, 06:39 AM   #4
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Quote:
Originally Posted by lgladen View Post
Kiwidude - The B&N plugin seems to be inserting commas as well as "&" signs in between multiple authors when downloading metadata. Checked the download log and B&N shows (for example): Katherine Maclean, & Polly Freas (editor), & Kelly Freas (editor)
Yes I noticed something similar last night just before I crashed so it is on my hit list for this morning. The books I had checked with multiple authors when i did the first release didn't happen to have the extra text in brackets that causes the issue.

I also found there was another type of "audio" edition I need to add to my list to filter out. And I need to do some more work on prioritising various results based on whether they have a large cover you can drill into or not, as the approach I have in there currently doesn't always work. Annoyingly barnes & noble don't attach a drill in large cover to every edition, so it is a lucky dip at the moment.

Will be a new version in a few hours hopefully. Btw if anyone finds any other issues please post an isbn or title/author that I can use to replicate.
kiwidude is offline   Reply With Quote
Old 05-09-2011, 01:24 PM   #5
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.0.1 Released

Changes in this release:
  • Add "Audio" to list of excluded format types
  • Fix issues with multiple authors when they have contribution type in brackets after them
  • Add a config option (like Goodreads) to return all contributing authors (off by default)
  • Modify prioritisation of results to increase chance of getting a large cover when multiple have covers

Important:

Until Kovid tweaks something in Calibre in the metadata API, you may want to set your maximum number of requests down to one in the configuration screen for this dialog (I have made that the new default, but if you have installed this previously you will have to manually adjust this).

If you do not, then there is the possibility that the ISBN/B&N Id that you are returned is not actually the "best match". There is more discussion on this issue here for the technically inclined, I have added an issue to the bug tracker for it.

What is the impact of setting it to just one result match being considered?

Well it means you are relying on B&N giving you their best match at the top of their search results. So for instance it can be the case that only some of the ISBNs they offer on their website have large images available for a book. Retrieving several results can increase your chances of getting the largest cover.

You may not notice a difference for many books - hopefully B&N's "best match" is the one with the most complete metadata and cover anyway.

Note that this will normally only affect searches by title/author, not when you already have an ISBN (provided it exists on B&N).
kiwidude is offline   Reply With Quote
Old 05-09-2011, 07:22 PM   #6
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.0.2 Released

Changes in this release:
  • Make sure that Image not available gifs are not returned as fallback covers
kiwidude is offline   Reply With Quote
Old 05-12-2011, 08:53 PM   #7
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
v1.0.3 Released

Changes in this release:
  • Remove some debugging stuff from the log
  • Strip hyperlinks text from the comments since these don't get retained and just confuse the output
kiwidude is offline   Reply With Quote
Old 05-19-2011, 10:21 AM   #8
liquid2000
Junior Member
liquid2000 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: PC
Please add function for parsing TOC from the Barnes & Noble site
liquid2000 is offline   Reply With Quote
Old 05-19-2011, 10:53 AM   #9
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
Quote:
Originally Posted by liquid2000 View Post
Please add function for parsing TOC from the Barnes & Noble site
I have no idea what you mean or what you hope to achieve?
kiwidude is offline   Reply With Quote
Old 05-19-2011, 02:54 PM   #10
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,275
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
Since when has that stopped you before
meme is offline   Reply With Quote
Old 05-20-2011, 03:09 AM   #11
liquid2000
Junior Member
liquid2000 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: PC
I need the table of contents for my books. For science books it's better to search when you have table of contents than short and simple description. On the B&N site for this kind of books there is a table of contents on the tab Features. I want to add TOC to to the comments field but I don't know what I most change in the source code
liquid2000 is offline   Reply With Quote
Old 05-20-2011, 07:21 AM   #12
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
A much better description of what you would like, thanks! Welcome to MR btw. Can you post a link to an example couple of books on the B&N website? As this information is only available for certain books, maybe only for certain editions of those books too? So even if I did add an option for getting this information it could well be a lottery as to whether the edition picked by the metadata search has this info available...
kiwidude is offline   Reply With Quote
Old 05-20-2011, 07:42 AM   #13
liquid2000
Junior Member
liquid2000 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: PC
Table of contents isn't available for all the books but for almost all science books
e.g.
http://search.barnesandnoble.com/Rot...rical+machines
http://search.barnesandnoble.com/Mic...I=visual+basic

In the source of the page there is section <div id="toc" class="#toc-feature">
liquid2000 is offline   Reply With Quote
Old 05-20-2011, 09:20 AM   #14
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,230
Karma: 1345754
Join Date: Oct 2010
Location: London, UK
Device: Kindle Paperwhite 3G, iPad 3, iPad Air
@liquid2000 - give this version a try. You will need to go into the configuration for the B&N plugin after installing and tick the checkbox I have added for appending the TOC. I decided not to try to strip the page numbers from the TOC, maybe someone would find them useful anyways so easier to just leave them in there. Let me know if this does what you want and I will officially release it.

Last edited by kiwidude; 05-20-2011 at 09:54 AM. Reason: Remove attachment as officially released
kiwidude is offline   Reply With Quote
Old 05-20-2011, 09:42 AM   #15
liquid2000
Junior Member
liquid2000 began at the beginning.
 
Posts: 4
Karma: 10
Join Date: May 2011
Device: PC
Exactly! Thank you very much
liquid2000 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 218 11-19-2014 11:37 AM
[Old Thread] Problem reading converted EPUB & PDB on Barnes & Noble eReader webfolk Calibre 3 01-09-2012 11:08 PM
Small Change to Metadata Source plugin API kovidgoyal Development 2 04-25-2011 03:55 PM
Neo Barnes & Noble from the UK Fith BeBook 5 04-26-2010 06:20 PM
Barnes & Noble mycart Introduce Yourself 5 02-03-2010 01:14 PM


All times are GMT -4. The time now is 08:44 PM.


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