Split multiple authors on ','

This commit is contained in:
Ben Bridts 2014-02-18 17:56:57 +01:00
commit 05d357e98e
3 changed files with 8 additions and 2 deletions

View file

@ -46,7 +46,7 @@ METADATA_PROCESSORS = {
'status': lambda x, y: x.strip(),
'category': Category,
'author': Author,
'authors': lambda x, y: [Author(author, y) for author in x],
'authors': lambda x, y: [Author(author.strip(), y) for author in x.split(',')],
}
logger = logging.getLogger(__name__)