255 is to long

This commit is contained in:
j 2017-06-03 23:26:01 +02:00
parent e966256fa2
commit d5ba41ac1e

View file

@ -749,7 +749,7 @@ 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 len(author) > 255: if len(author) > 200:
author = 'Various Authors' author = 'Various Authors'
title = j.get('title', 'Untitled') title = j.get('title', 'Untitled')
extension = j['extension'] extension = j['extension']