extract textsize, take timestamp for changelog entries update peers on peering events
This commit is contained in:
parent
b6866cb2be
commit
9aef3616ba
6 changed files with 24 additions and 9 deletions
|
|
@ -31,7 +31,10 @@ def metadata(f):
|
|||
elif ext == 'txt':
|
||||
info = txt.info(f)
|
||||
|
||||
for key in ('title', 'author', 'date', 'publisher', 'isbn'):
|
||||
for key in (
|
||||
'title', 'author', 'date', 'publisher', 'isbn',
|
||||
'textsize', 'pages'
|
||||
):
|
||||
if key in info:
|
||||
value = info[key]
|
||||
if isinstance(value, str):
|
||||
|
|
|
|||
|
|
@ -75,7 +75,6 @@ def info(pdf):
|
|||
info = pdfreader.getDocumentInfo()
|
||||
if info:
|
||||
for key in info:
|
||||
print key, info
|
||||
if info[key]:
|
||||
data[key[1:].lower()] = info[key]
|
||||
xmp =pdfreader.getXmpMetadata()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue