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):
|
||||
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]
|
||||
|
|
Loading…
Reference in a new issue