allow all meta keys from file

This commit is contained in:
j 2016-01-11 19:59:07 +05:30
parent 1735967306
commit fc11869088

View file

@ -43,9 +43,23 @@ def metadata(f, from_=None):
if os.path.exists(metadata_opf):
opf_info = opf.info(metadata_opf)
for key in (
'title', 'author', 'date', 'publisher', 'description',
'language', 'textsize', 'pages',
'isbn', 'asin'
'author',
'categories',
'cover',
'date',
'description',
'edition',
'isbn',
'language',
'pages',
'place',
'publisher',
'series',
'tableofcontents',
'title',
'asin',
'textsize',
):
if key in info:
value = info[key]