extract textsize, take timestamp for changelog entries update peers on peering events

This commit is contained in:
j 2014-05-19 11:38:41 +02:00
commit 9aef3616ba
6 changed files with 24 additions and 9 deletions

View file

@ -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):