Fixes #328 When creating a new media item for Google Photos fails it does not return newMediaItemResults in the body. The code checks for this but then returns the key which it verified does not exist. This change returns the entire response body in its entirety.
This commit is contained in:
parent
87e0420fba
commit
6a4c21fc57
|
@ -149,7 +149,7 @@ class GooglePhotos(PluginBase):
|
||||||
)
|
)
|
||||||
|
|
||||||
):
|
):
|
||||||
self.log('Creating new media item failed: {}'.format(resp['newMediaItemResults'][0]['status']))
|
self.log('Creating new media item failed: {}'.format(json.dumps(resp)))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return resp['newMediaItemResults'][0]
|
return resp['newMediaItemResults'][0]
|
||||||
|
|
Loading…
Reference in New Issue