View Single Post
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:	1001
Size:	32.1 KB
ID:	71107  
Attached Files
File Type: zip Barnes & Noble-qt5.zip (37.2 KB, 6271 views)

Last edited by kovidgoyal; 07-21-2014 at 02:28 PM. Reason: v1.2.12 Released
kiwidude is offline   Reply With Quote