split pdf author
This commit is contained in:
parent
d817c67f83
commit
619a2fbd37
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue