Bugfixes load metadata

Improvements for testing load metadata
This commit is contained in:
Ozzie Isaacs
2022-01-07 12:40:03 +01:00
parent c830a5936e
commit e3dbf7a88d
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class Google(Metadata):
if self.active:
val = list()
result = requests.get("https://www.googleapis.com/books/v1/volumes?q="+query.replace(" ","+"))
for r in result.json()['items']:
for r in result.json().get('items'):
v = dict()
v['id'] = r['id']
v['title'] = r['volumeInfo'].get('title',"")