Minor fix to amazon social

This commit is contained in:
Sengian 2010-12-12 00:23:47 +01:00
parent 042474b1eb
commit 9a3933354a

View File

@ -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()