allow all meta keys from file
This commit is contained in:
parent
1735967306
commit
fc11869088
1 changed files with 17 additions and 3 deletions
|
@ -43,9 +43,23 @@ def metadata(f, from_=None):
|
||||||
if os.path.exists(metadata_opf):
|
if os.path.exists(metadata_opf):
|
||||||
opf_info = opf.info(metadata_opf)
|
opf_info = opf.info(metadata_opf)
|
||||||
for key in (
|
for key in (
|
||||||
'title', 'author', 'date', 'publisher', 'description',
|
'author',
|
||||||
'language', 'textsize', 'pages',
|
'categories',
|
||||||
'isbn', 'asin'
|
'cover',
|
||||||
|
'date',
|
||||||
|
'description',
|
||||||
|
'edition',
|
||||||
|
'isbn',
|
||||||
|
'language',
|
||||||
|
'pages',
|
||||||
|
'place',
|
||||||
|
'publisher',
|
||||||
|
'series',
|
||||||
|
'tableofcontents',
|
||||||
|
'title',
|
||||||
|
|
||||||
|
'asin',
|
||||||
|
'textsize',
|
||||||
):
|
):
|
||||||
if key in info:
|
if key in info:
|
||||||
value = info[key]
|
value = info[key]
|
||||||
|
|
Loading…
Reference in a new issue