mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-22 04:44:59 +00:00
Add support for bundled apks
They will be available under 'splits' key in result.
This commit is contained in:
parent
fc0cc3a902
commit
f74790a9ee
@ -553,12 +553,20 @@ class GooglePlayAPI(object):
|
||||
result = {}
|
||||
result['docId'] = packageName
|
||||
result['additionalData'] = []
|
||||
result['splits'] = []
|
||||
downloadUrl = response.payload.deliveryResponse.appDeliveryData.downloadUrl
|
||||
cookie = response.payload.deliveryResponse.appDeliveryData.downloadAuthCookie[0]
|
||||
cookies = {
|
||||
str(cookie.name): str(cookie.value)
|
||||
}
|
||||
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:
|
||||
return result
|
||||
for obb in response.payload.deliveryResponse.appDeliveryData.additionalFile:
|
||||
|
Loading…
Reference in New Issue
Block a user