Social metadata download: If the user specifies that they dont want social metadata, don't get tags from the basic metadata sources either

This commit is contained in:
Kovid Goyal 2009-11-14 16:25:28 -07:00
parent 869b907568
commit 1e6f8d72dd
2 changed files with 4 additions and 0 deletions

View File

@ -552,6 +552,8 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
warning_dialog(self, _('There were errors'), warning_dialog(self, _('There were errors'),
_('There were errors downloading social metadata'), _('There were errors downloading social metadata'),
det_msg=det, show=True) det_msg=det, show=True)
else:
book.tags = []
self.title.setText(book.title) self.title.setText(book.title)
self.authors.setText(authors_to_string(book.authors)) self.authors.setText(authors_to_string(book.authors))
if book.author_sort: self.author_sort.setText(book.author_sort) if book.author_sort: self.author_sort.setText(book.author_sort)

View File

@ -100,6 +100,8 @@ class DownloadMetadata(Thread):
mi.smart_update(fmi) mi.smart_update(fmi)
if mi.isbn and self.get_social_metadata: if mi.isbn and self.get_social_metadata:
self.social_metadata_exceptions = get_social_metadata(mi) self.social_metadata_exceptions = get_social_metadata(mi)
if not self.get_social_metadata:
mi.tags = []
else: else:
self.failures[id] = (mi.title, self.failures[id] = (mi.title,
_('No matches found for this book')) _('No matches found for this book'))