Merge pull request #108 from kar/master

Add support for bundled apks
This commit is contained in:
Domenico Iezzi 2020-01-20 08:11:44 +00:00 committed by GitHub
commit 1848a618f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -553,12 +553,20 @@ class GooglePlayAPI(object):
result = {} result = {}
result['docId'] = packageName result['docId'] = packageName
result['additionalData'] = [] result['additionalData'] = []
result['splits'] = []
downloadUrl = response.payload.deliveryResponse.appDeliveryData.downloadUrl downloadUrl = response.payload.deliveryResponse.appDeliveryData.downloadUrl
cookie = response.payload.deliveryResponse.appDeliveryData.downloadAuthCookie[0] cookie = response.payload.deliveryResponse.appDeliveryData.downloadAuthCookie[0]
cookies = { cookies = {
str(cookie.name): str(cookie.value) str(cookie.name): str(cookie.value)
} }
result['file'] = self._deliver_data(downloadUrl, cookies) result['file'] = self._deliver_data(downloadUrl, cookies)
for split in response.payload.deliveryResponse.appDeliveryData.split:
a = {}
a['name'] = split.name
a['file'] = self._deliver_data(split.downloadUrl, None)
result['splits'].append(a)
if not expansion_files: if not expansion_files:
return result return result
for obb in response.payload.deliveryResponse.appDeliveryData.additionalFile: for obb in response.payload.deliveryResponse.appDeliveryData.additionalFile: