mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
oops
This commit is contained in:
parent
bae03def12
commit
f0567e81ae
@ -1218,7 +1218,7 @@ def try_opf(path, options):
|
||||
ref = soup.package.find('reference', {'type':'other.ms-coverimage-standard'})
|
||||
if ref:
|
||||
try:
|
||||
options.cover = ref.get('href')
|
||||
options.cover = os.path.join(os.path.dirname(path), ref.get('href'))
|
||||
if not os.access(options.cover, os.R_OK):
|
||||
options.cover = None
|
||||
except:
|
||||
|
Loading…
x
Reference in New Issue
Block a user