use sort name for files, fixes #51

This commit is contained in:
j 2016-01-07 01:08:15 +05:30
parent 7ca90dedfc
commit 9b76d89cfa
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ class File(db.Model):
if not os.path.exists(current_path):
logger.debug('file is missing. %s', current_path)
return
author = '; '.join([ox.canonical_name(a) for a in j.get('author', [])])
author = '; '.join([get_sort_name(a) for a in j.get('author', [])])
if not author:
author = 'Unknown Author'
title = j.get('title', 'Untitled')