use new google api
This commit is contained in:
parent
5ad4d1d67c
commit
c3cdc4ccd9
1 changed files with 2 additions and 2 deletions
|
@ -123,7 +123,7 @@ def find(title=None, author=None):
|
|||
isbns.add(info['isbn'])
|
||||
return results
|
||||
|
||||
def info(isbn):
|
||||
def info_old(isbn):
|
||||
url = 'http://books.google.com/books/feeds/volumes?' + urlencode({
|
||||
'q': 'isnb:' + isbn,
|
||||
'max-results':1,
|
||||
|
@ -139,7 +139,7 @@ def info(isbn):
|
|||
return info
|
||||
return {}
|
||||
|
||||
def info_newapi(value):
|
||||
def info(value):
|
||||
key = 'isbn'
|
||||
url = 'https://www.googleapis.com/books/v1/volumes?q=%s:%s' % (key, value)
|
||||
api_key = settings.server.get('google_api_key')
|
||||
|
|
Loading…
Reference in a new issue