From 619a2fbd3733c2f952f3f162a7b19486d245ee5f Mon Sep 17 00:00:00 2001 From: j Date: Fri, 25 Dec 2015 20:23:22 +0530 Subject: [PATCH] split pdf author --- oml/media/pdf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oml/media/pdf.py b/oml/media/pdf.py index 7f4fed4..0bfe15b 100644 --- a/oml/media/pdf.py +++ b/oml/media/pdf.py @@ -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 '''