mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-05 14:55:16 +01:00
Minor fix to amazon social
This commit is contained in:
parent
042474b1eb
commit
9a3933354a
1 changed files with 4 additions and 2 deletions
|
|
@ -98,9 +98,11 @@ class AmazonSocial(MetadataSource):
|
|||
has_html_comments = True
|
||||
|
||||
def fetch(self):
|
||||
if not self.isbn:
|
||||
return
|
||||
try:
|
||||
self.results = search(self.title, self.book_author, self.publisher,
|
||||
self.isbn, max_results=5, verbose=self.verbose, lang='all')
|
||||
self.results = get_social_metadata(self.title, self.book_author, self.publisher,
|
||||
self.isbn, verbose=self.verbose, lang='all')[0]
|
||||
except Exception, e:
|
||||
self.exception = e
|
||||
self.tb = traceback.format_exc()
|
||||
|
|
|
|||
Loading…
Reference in a new issue