From dd3e5f7c77134d034eb8592479288e1bb9fe28fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Robert=20B=C5=82aut?= Date: Sun, 26 Jan 2014 11:43:52 +0100 Subject: [PATCH 1/1] 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' --- librarian/epub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, ''))) -- 2.20.1