only get required item keys

This commit is contained in:
j 2016-02-27 12:03:06 +05:30
parent 54f301ff71
commit 0fbef43b71
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ class File(db.Model):
prefix = os.sep.join(os.path.join(os.path.expanduser(prefs['libraryPath']), 'Books/').split('/'))
if not self.item:
return
j = self.item.json()
j = self.item.json(keys=['title', 'author', 'publisher', 'date', 'extension'])
current_path = self.fullpath()
if not os.path.exists(current_path):