various authors

This commit is contained in:
j 2016-01-29 22:05:59 +05:30
parent 36fc6e7e73
commit 5d92e0b397

View file

@ -687,6 +687,8 @@ class File(db.Model):
author = 'Unknown Author' author = 'Unknown Author'
if ' (Ed.)' in author: if ' (Ed.)' in author:
author = author.replace(' (Ed.)', '') + ' (Ed.)' author = author.replace(' (Ed.)', '') + ' (Ed.)'
if author > 255:
author = 'Various Authors'
title = j.get('title', 'Untitled') title = j.get('title', 'Untitled')
extension = j['extension'] extension = j['extension']