use old google api

This commit is contained in:
j 2016-02-03 01:00:40 +05:30
commit 404842f849
4 changed files with 119 additions and 20 deletions

View file

@ -242,11 +242,7 @@ def findMetadata(data):
if r:
response['items'].append(r)
elif key == 'author,title':
value = ' '.join(data.values())
for isbn in meta.find(value):
r = meta.lookup('isbn', isbn)
if r:
response['items'].append(r)
response['items'] = meta.find(**data)
elif key == 'id':
import user.models
items = {}