diff --git a/src/calibre/gui2/tweak_book/download.py b/src/calibre/gui2/tweak_book/download.py index 5d76f62405..45a04502ad 100644 --- a/src/calibre/gui2/tweak_book/download.py +++ b/src/calibre/gui2/tweak_book/download.py @@ -185,8 +185,11 @@ class DownloadResources(Dialog): self.state = 2 self.wait.msg = _('Updating resources in book...') self.wait.start() - self.success.setText('
' + ngettext(
- 'Successfully processed the external resource', 'Successfully processed {} external resources', len(replacements)).format(len(replacements)))
+ t = ngettext(
+ 'Successfully processed the external resource', 'Successfully processed {} external resources', len(replacements)).format(len(replacements))
+ if failures:
+ t += '
' + ngettext('Could not download one image', 'Could not download {} images', len(failures)).format(len(failures))
+ self.success.setText('
' + t) resources = self.choose_resources.resources t = Thread(name='ReplaceResources', target=self.replace_resources, args=(resources, replacements)) t.daemon = True