From 24f9c4d8d1396218a125e4b4bbfce780fa3be243 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 9 May 2022 09:36:54 +0200 Subject: [PATCH 1/1] Switch cover for legimi. --- src/depot/legimi.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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, -- 2.20.1