mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-15 05:45:47 +01:00
...
This commit is contained in:
parent
bb5a88f66c
commit
ca53c97024
1 changed files with 7 additions and 2 deletions
|
|
@ -21,8 +21,13 @@ def __call__(self, oeb, opts):
|
|||
'other.ms-thumbimage', 'thumbimagestandard'):
|
||||
if x in self.oeb.guide:
|
||||
href = self.oeb.guide[x].href
|
||||
item = self.oeb.manifest.hrefs[href]
|
||||
covers.append([self.oeb.guide[x], len(item.data)])
|
||||
try:
|
||||
item = self.oeb.manifest.hrefs[href]
|
||||
except KeyError:
|
||||
continue
|
||||
else:
|
||||
covers.append([self.oeb.guide[x], len(item.data)])
|
||||
|
||||
covers.sort(cmp=lambda x,y:cmp(x[1], y[1]), reverse=True)
|
||||
if covers:
|
||||
ref = covers[0][0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue