open external urls in browser

This commit is contained in:
j 2015-11-19 15:11:18 +01:00
commit 13e360ac97
2 changed files with 14 additions and 0 deletions

View file

@ -531,6 +531,9 @@ class File(db.Model):
j = self.item.json()
current_path = self.fullpath()
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', [])])
if not author:
author = 'Unknown Author'