mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
IGN:...
This commit is contained in:
parent
0813f616c2
commit
00bd62d92d
@ -346,19 +346,22 @@ class MetadataSingleDialog(ResizableDialog, Ui_MetadataSingleDialog):
|
|||||||
pix = QPixmap()
|
pix = QPixmap()
|
||||||
pix.loadFromData(cover_data)
|
pix.loadFromData(cover_data)
|
||||||
if pix.isNull():
|
if pix.isNull():
|
||||||
error_dialog(self.window, "The cover is not a valid picture").exec_()
|
error_dialog(self.window, _('Bad cover'),
|
||||||
|
_('The cover is not a valid picture')).exec_()
|
||||||
else:
|
else:
|
||||||
self.cover.setPixmap(pix)
|
self.cover.setPixmap(pix)
|
||||||
self.cover_changed = True
|
self.cover_changed = True
|
||||||
self.cpixmap = pix
|
self.cpixmap = pix
|
||||||
except LibraryThingError, err:
|
except LibraryThingError, err:
|
||||||
error_dialog(self, _('Could not fetch cover'), _('<b>Could not fetch cover.</b><br/>')+repr(err)).exec_()
|
error_dialog(self, _('Cannot fetch cover'),
|
||||||
|
_('<b>Could not fetch cover.</b><br/>')+repr(err)).exec_()
|
||||||
finally:
|
finally:
|
||||||
self.fetch_cover_button.setEnabled(True)
|
self.fetch_cover_button.setEnabled(True)
|
||||||
self.unsetCursor()
|
self.unsetCursor()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
error_dialog(self, _('Cannot fetch cover'), _('You must specify the ISBN identifier for this book.')).exec_()
|
error_dialog(self, _('Cannot fetch cover'),
|
||||||
|
_('You must specify the ISBN identifier for this book.')).exec_()
|
||||||
|
|
||||||
|
|
||||||
def fetch_metadata(self):
|
def fetch_metadata(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user