split pdf author

This commit is contained in:
j 2015-12-25 20:23:22 +05:30
parent d817c67f83
commit 619a2fbd37
1 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,8 @@ def info(pdf):
if 'date' in data and len(data['date']) == 8 and data['date'].isdigit():
d = data['date']
data['date'] = '%s-%s-%s' % (d[:4], d[4:6], d[6:])
if 'author' in data and isinstance(data['author'], str):
data['author'] = data['author'].split(', ')
return data
'''