mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix regression in 0.8.53 that broke sending APNX files to older Kindle devices
This commit is contained in:
parent
e316682e4d
commit
02e6b835f9
@ -386,7 +386,7 @@ class KINDLE2(KINDLE):
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
# Upload the apnx file
|
||||
self.upload_apnx(filename, metadata, filepath)
|
||||
self.upload_apnx(path, filename, metadata, filepath)
|
||||
|
||||
def upload_kindle_thumbnail(self, metadata, filepath):
|
||||
coverdata = getattr(metadata, 'thumbnail', None)
|
||||
@ -406,7 +406,7 @@ class KINDLE2(KINDLE):
|
||||
with open(thumbfile, 'wb') as f:
|
||||
f.write(coverdata[2])
|
||||
|
||||
def upload_apnx(self, filename, metadata, filepath):
|
||||
def upload_apnx(self, path, filename, metadata, filepath):
|
||||
from calibre.devices.kindle.apnx import APNXBuilder
|
||||
|
||||
opts = self.settings()
|
||||
|
Loading…
x
Reference in New Issue
Block a user