Commit c7d7a759 authored by Jan Guzej's avatar Jan Guzej

remove language from array metadata

parent fbb7663a
......@@ -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]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment