fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e459022
)
Switch cover for legimi.
author
Radek Czajka
<rczajka@rczajka.pl>
Mon, 9 May 2022 07:36:54 +0000
(09:36 +0200)
committer
Radek Czajka
<rczajka@rczajka.pl>
Mon, 9 May 2022 07:36:54 +0000
(09:36 +0200)
src/depot/legimi.py
patch
|
blob
|
history
diff --git
a/src/depot/legimi.py
b/src/depot/legimi.py
index
5fa040c
..
75ddaa1
100644
(file)
--- 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.functions import lang_code_3to2
from librarian.html import transform_abstrakt
from librarian.builders import EpubBuilder, MobiBuilder
-from librarian.cover
import LegimiCornerCover, Legimi
Cover
+from librarian.cover
s.marquise import MarquiseCover, LabelMarquise
Cover
import requests
from slugify import slugify
import requests
from slugify import slugify
@@
-77,9
+77,9
@@
class Legimi:
wlbook = book.wldocument(librarian2=True)
meta = wlbook.meta
wlbook = book.wldocument(librarian2=True)
meta = wlbook.meta
- cover = L
egimiCorner
Cover(meta, width=1200).output_file()
- epub_file = EpubBuilder(cover=
Legimi
Cover, fundraising=fundraising).build(wlbook).get_file()
- mobi_file = MobiBuilder(cover=
Legimi
Cover, fundraising=fundraising).build(wlbook).get_file()
+ cover = L
abelMarquise
Cover(meta, width=1200).output_file()
+ epub_file = EpubBuilder(cover=
Marquise
Cover, fundraising=fundraising).build(wlbook).get_file()
+ mobi_file = MobiBuilder(cover=
Marquise
Cover, fundraising=fundraising).build(wlbook).get_file()
book_data = {
"Title": meta.title,
book_data = {
"Title": meta.title,