only get required item keys

This commit is contained in:
j 2016-02-27 12:03:06 +05:30
parent 54f301ff71
commit 0fbef43b71

View file

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