From: Radek Czajka Date: Mon, 9 May 2022 07:36:54 +0000 (+0200) Subject: Switch cover for legimi. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/24f9c4d8d1396218a125e4b4bbfce780fa3be243?ds=sidebyside Switch cover for legimi. --- diff --git a/src/depot/legimi.py b/src/depot/legimi.py index 5fa040cb..75ddaa12 100644 --- a/src/depot/legimi.py +++ b/src/depot/legimi.py @@ -4,7 +4,7 @@ from django.conf import settings from librarian.functions import lang_code_3to2 from librarian.html import transform_abstrakt from librarian.builders import EpubBuilder, MobiBuilder -from librarian.cover import LegimiCornerCover, LegimiCover +from librarian.covers.marquise import MarquiseCover, LabelMarquiseCover import requests from slugify import slugify @@ -77,9 +77,9 @@ class Legimi: wlbook = book.wldocument(librarian2=True) meta = wlbook.meta - cover = LegimiCornerCover(meta, width=1200).output_file() - epub_file = EpubBuilder(cover=LegimiCover, fundraising=fundraising).build(wlbook).get_file() - mobi_file = MobiBuilder(cover=LegimiCover, fundraising=fundraising).build(wlbook).get_file() + cover = LabelMarquiseCover(meta, width=1200).output_file() + epub_file = EpubBuilder(cover=MarquiseCover, fundraising=fundraising).build(wlbook).get_file() + mobi_file = MobiBuilder(cover=MarquiseCover, fundraising=fundraising).build(wlbook).get_file() book_data = { "Title": meta.title,