mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
156881728f
commit
a2c3b37da5
@ -1027,7 +1027,7 @@ class OPF(object): # {{{
|
|||||||
if self.guide is not None:
|
if self.guide is not None:
|
||||||
for t in ('cover', 'other.ms-coverimage-standard', 'other.ms-coverimage'):
|
for t in ('cover', 'other.ms-coverimage-standard', 'other.ms-coverimage'):
|
||||||
for item in self.guide:
|
for item in self.guide:
|
||||||
if item.type.lower() == t:
|
if item.type and item.type.lower() == t:
|
||||||
return item.path
|
return item.path
|
||||||
try:
|
try:
|
||||||
return self.guess_cover()
|
return self.guess_cover()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user