From: Robert BÅ‚aut Date: Sun, 26 Jan 2014 10:43:52 +0000 (+0100) Subject: Fix for Epubcheck Version 3.0.1 validation warning X-Git-Tag: 1.7~104^2~20 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/dd3e5f7c77134d034eb8592479288e1bb9fe28fd Fix for Epubcheck Version 3.0.1 validation warning WARNING: OEBPS/toc.ncx: meta@dtb:uid content 'sample' should conform to unique-identifier in content.opf: 'http://wolnelektury.pl/katalog/lektura/sample' --- diff --git a/librarian/epub.py b/librarian/epub.py index 9e30134..c8a8668 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -565,7 +565,7 @@ def transform(wldoc, verbose=False, meta.set('name', st) meta.set('content', '0') toc_file[0].append(meta) - toc_file[0][0].set('content', ''.join((title, 'WolneLektury.pl'))) + toc_file[0][0].set('content', str(document.book_info.url)) toc_file[0][1].set('content', str(toc.depth())) set_inner_xml(toc_file[1], ''.join(('', title, '')))