This commit is contained in:
j 2016-01-30 11:44:02 +05:30
parent 142f3bcc6e
commit c00c6755d8

View file

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