Only upload APNX for Kindle devices

This commit is contained in:
Daniel Pecos Martinez 2025-07-14 23:01:19 +02:00
parent 8a2b027e39
commit 35f701fb9f
No known key found for this signature in database
GPG Key ID: 38E9D1E4A1ED64EF

View File

@ -545,7 +545,8 @@ class MTP_DEVICE(BASE):
try:
self.upload_cover(parent, relpath, storage, mi, stream)
# Upload the apnx file
self.upload_apnx(parent, fname, storage, mi, infile)
if self.is_kindle:
self.upload_apnx(parent, fname, storage, mi, infile)
except Exception:
import traceback
traceback.print_exc()