Another bug: If title and author are blank, the plugin doesn't even try using the ISBN to lookup the book. If the title and author have any value at all, the plugin will successfully use the ISBN to lookup the book.
Here's the error I receive with title and author blank
Code:
****************************** Barnes & Noble (1, 2, 16) ******************************
Found 0 results
Downloading from Barnes & Noble took 0.05497002601623535
Plugin Barnes & Noble failed
Traceback (most recent call last):
File "calibre\ebooks\metadata\sources\identify.py", line 47, in run
File "calibre_plugins.barnes_noble.__init__", line 137, in identify
File "calibre\ebooks\unihandecode\__init__.py", line 51, in decode
TypeError: normalize() argument 2 must be str, not None
********************************************************************************
I fixed it on my end by changing lines 137-138 of the __init__ file to
Code:
if title:
title = get_udc().decode(title)
if authors:
authors = [get_udc().decode(a) for a in authors]
I'm not sure if that's going to cause any additional errors but it seems to get around this one.