diff --git a/oml/media/pdf.py b/oml/media/pdf.py index 0bfe15b..a44c69c 100644 --- a/oml/media/pdf.py +++ b/oml/media/pdf.py @@ -12,6 +12,7 @@ from datetime import datetime from PyPDF2 import PdfFileReader import stdnum.isbn +import ox import settings from utils import normalize_isbn, find_isbns, get_language @@ -176,7 +177,7 @@ def info(pdf): 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(', ') + data['author'] = [ox.normalize_name(data['author'])] return data '''