various authors

This commit is contained in:
j 2016-01-29 22:05:59 +05:30
parent 36fc6e7e73
commit 5d92e0b397
1 changed files with 2 additions and 0 deletions

View File

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