From c7d7a7597c212436fae769a7e6d8a148061dec01 Mon Sep 17 00:00:00 2001 From: Jan Guzej Date: Sat, 19 Oct 2019 21:49:18 +0200 Subject: [PATCH] remove language from array metadata --- cps/epub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/epub.py b/cps/epub.py index 760df869..c4fdafeb 100644 --- a/cps/epub.py +++ b/cps/epub.py @@ -66,7 +66,7 @@ def get_epub_info(tmp_file_path, original_file_name, original_file_extension): if len(tmp) > 0: if s == 'creator': epub_metadata[s] = ' & '.join(p.xpath('dc:%s/text()' % s, namespaces=ns)) - elif s == 'language' or s == 'subject': + elif s == 'subject': epub_metadata[s] = ', '.join(p.xpath('dc:%s/text()' % s, namespaces=ns)) else: epub_metadata[s] = p.xpath('dc:%s/text()' % s, namespaces=ns)[0]