mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
GwR patch for bogus cover data
This commit is contained in:
parent
c5a679a437
commit
8a44bf07ed
@ -2862,7 +2862,7 @@ class EPUB_MOBI(CatalogPlugin):
|
|||||||
(i,len(self.booksByTitle)),
|
(i,len(self.booksByTitle)),
|
||||||
i/float(len(self.booksByTitle)))
|
i/float(len(self.booksByTitle)))
|
||||||
|
|
||||||
# Confirm existence, integrity of cover image
|
thumb_file = 'thumbnail_%d.jpg' % int(title['id'])
|
||||||
valid_cover = True
|
valid_cover = True
|
||||||
try:
|
try:
|
||||||
_w, _h, _fmt = identify_data(open(title['cover'], 'rb').read())
|
_w, _h, _fmt = identify_data(open(title['cover'], 'rb').read())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user