robust googlebooks search
This commit is contained in:
parent
5a34198363
commit
7415b11f78
1 changed files with 2 additions and 0 deletions
|
@ -92,6 +92,8 @@ class GoogleBooks:
|
|||
j = requests.get(api_url).json()
|
||||
if 'items' in j:
|
||||
for b in j['items']:
|
||||
if 'title' not in b['volumeInfo']:
|
||||
continue
|
||||
title = b['volumeInfo']['title']
|
||||
subtitle = ''
|
||||
if 'publishedDate' in b['volumeInfo']:
|
||||
|
|
Loading…
Add table
Reference in a new issue