mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-22 04:44:59 +00:00
commit
1848a618f6
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user