X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/b6ec0976a383cc1823f4a199bc3e6dc40880b049..cbabbdaa7ab6c6be8cd22b77860331444ddf6119:/librarian/packagers.py diff --git a/librarian/packagers.py b/librarian/packagers.py index ebeb5b3..36a7b60 100644 --- a/librarian/packagers.py +++ b/librarian/packagers.py @@ -130,10 +130,7 @@ class VirtualoEpubPackager(Packager): product_elem[4][0][1].text = cls.utf_trunc(info.author.last_name, 100) xml.append(product_elem) - cover.VirtualoCover( - u' '.join(info.author.first_names + (info.author.last_name,)), - info.title - ).save(os.path.join(outfile_dir, slug+'.jpg')) + cover.VirtualoCover(info).save(os.path.join(outfile_dir, slug+'.jpg')) outfile = os.path.join(outfile_dir, '1.epub') outfile_sample = os.path.join(outfile_dir, '1.sample.epub') doc.save_output_file(epub.transform(doc),