mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Minor fix to amazon social
This commit is contained in:
parent
042474b1eb
commit
9a3933354a
@ -98,9 +98,11 @@ class AmazonSocial(MetadataSource):
|
|||||||
has_html_comments = True
|
has_html_comments = True
|
||||||
|
|
||||||
def fetch(self):
|
def fetch(self):
|
||||||
|
if not self.isbn:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
self.results = search(self.title, self.book_author, self.publisher,
|
self.results = get_social_metadata(self.title, self.book_author, self.publisher,
|
||||||
self.isbn, max_results=5, verbose=self.verbose, lang='all')
|
self.isbn, verbose=self.verbose, lang='all')[0]
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
self.exception = e
|
self.exception = e
|
||||||
self.tb = traceback.format_exc()
|
self.tb = traceback.format_exc()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user