From 04ae986e00d097fb9db27f8d6bdd494f34af5f3d Mon Sep 17 00:00:00 2001 From: Christopher Gurnee Date: Thu, 27 Feb 2020 18:59:58 -0500 Subject: [PATCH] Fix download of purchased apps This updates delivery() to use the newer protobuf definition in the same way that download() was updated in 46b4271. --- gpapi/googleplay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpapi/googleplay.py b/gpapi/googleplay.py index 57f23e1..60c6ca6 100644 --- a/gpapi/googleplay.py +++ b/gpapi/googleplay.py @@ -532,7 +532,8 @@ class GooglePlayAPI(object): if versionCode is None: # pick up latest version - versionCode = self.details(packageName).get('versionCode') + appDetails = self.details(packageName).get('details').get('appDetails') + versionCode = appDetails.get('versionCode') params = {'ot': str(offerType), 'doc': packageName,