]> git.parisson.com Git - telemeta.git/commitdiff
epub: no chapter for cover
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 9 Jun 2015 15:57:26 +0000 (17:57 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 9 Jun 2015 15:57:26 +0000 (17:57 +0200)
telemeta/views/epub.py

index b7758ba4ee734d099467d2479aabc0c7d0e73bef..1efedc93c0ef215da0e0564d2ef75517a189571d 100644 (file)
@@ -102,6 +102,7 @@ class BaseEpubMixin(TelemetaBaseMixin):
             filename = os.path.split(media.file.path)[-1]
             self.book.set_cover(filename, open(media.file.path, 'rb').read())
             cover = epub.EpubHtml(title='cover-bis', file_name='cover-bis' + '.xhtml', lang='fr')
+            cover.is_chapter = False
             cover.content = render_to_string(self.template_cover, {'image': filename})
             self.book.add_item(cover)
             break