mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
869b907568
commit
1e6f8d72dd
@ -552,6 +552,8 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
||||
warning_dialog(self, _('There were errors'),
|
||||
_('There were errors downloading social metadata'),
|
||||
det_msg=det, show=True)
|
||||
else:
|
||||
book.tags = []
|
||||
self.title.setText(book.title)
|
||||
self.authors.setText(authors_to_string(book.authors))
|
||||
if book.author_sort: self.author_sort.setText(book.author_sort)
|
||||
|
@ -100,6 +100,8 @@ class DownloadMetadata(Thread):
|
||||
mi.smart_update(fmi)
|
||||
if mi.isbn and self.get_social_metadata:
|
||||
self.social_metadata_exceptions = get_social_metadata(mi)
|
||||
if not self.get_social_metadata:
|
||||
mi.tags = []
|
||||
else:
|
||||
self.failures[id] = (mi.title,
|
||||
_('No matches found for this book'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user