From: Radek Czajka Date: Tue, 22 Aug 2023 14:49:15 +0000 (+0200) Subject: fix X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/51c6366416694fe151fdcea3d9da7a06a08f7ef1?ds=inline;hp=817ce226770c3b003d85b7e77e96360c433c80ed fix --- diff --git a/src/depot/publishers/woblink.py b/src/depot/publishers/woblink.py index 82a43753..c373d81c 100644 --- a/src/depot/publishers/woblink.py +++ b/src/depot/publishers/woblink.py @@ -580,8 +580,7 @@ class Woblink(BasePublisher): woblink_id, doc.meta.url.slug + '.epub', content, - 'UploadEpub', - 'epub', + 'Epub', 'application/epub+zip' ) demo_id = self.generate_demo(woblink_id, 'epub') @@ -597,8 +596,7 @@ class Woblink(BasePublisher): woblink_id, doc.meta.url.slug + '.mobi', content, - 'UploadMobi', - 'mobi', + 'Mobi', 'application/x-mobipocket-ebook' ) demo_id = self.generate_demo(woblink_id, 'mobi', check=False) @@ -616,8 +614,7 @@ class Woblink(BasePublisher): woblink_id, doc.meta.url.slug + '.jpeg', content, - 'UploadCover', - 'cover', + 'Cover', cover.mime_type() ) return file_id