mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-28 20:24:36 +01:00
Fix #5129 (The author of the metadata download plugins goes wrong after downloaded metadata for a book)
This commit is contained in:
parent
5e2a1b3f81
commit
2ba5222c04
1 changed files with 5 additions and 5 deletions
|
|
@ -39,7 +39,7 @@ def __call__(self, title, author, publisher, isbn, verbose, log=None,
|
|||
self.worker.daemon = True
|
||||
self.title = title
|
||||
self.verbose = verbose
|
||||
self.author = author
|
||||
self.book_author = author
|
||||
self.publisher = publisher
|
||||
self.isbn = isbn
|
||||
self.log = log if log is not None else default_log
|
||||
|
|
@ -139,7 +139,7 @@ class GoogleBooks(MetadataSource):
|
|||
def fetch(self):
|
||||
from calibre.ebooks.metadata.google_books import search
|
||||
try:
|
||||
self.results = search(self.title, self.author, self.publisher,
|
||||
self.results = search(self.title, self.book_author, self.publisher,
|
||||
self.isbn, max_results=10,
|
||||
verbose=self.verbose)
|
||||
except Exception, e:
|
||||
|
|
@ -162,8 +162,8 @@ def fetch(self):
|
|||
else:
|
||||
if self.title:
|
||||
args.extend(['--title', self.title])
|
||||
if self.author:
|
||||
args.extend(['--author', self.author])
|
||||
if self.book_author:
|
||||
args.extend(['--author', self.book_author])
|
||||
if self.publisher:
|
||||
args.extend(['--publisher', self.publisher])
|
||||
if self.verbose:
|
||||
|
|
@ -193,7 +193,7 @@ def fetch(self):
|
|||
return
|
||||
from calibre.ebooks.metadata.amazon import get_social_metadata
|
||||
try:
|
||||
self.results = get_social_metadata(self.title, self.author,
|
||||
self.results = get_social_metadata(self.title, self.book_author,
|
||||
self.publisher, self.isbn)
|
||||
except Exception, e:
|
||||
self.exception = e
|
||||
|
|
|
|||
Loading…
Reference in a new issue