mirror of
https://github.com/FliegendeWurst/googleplay-api.git
synced 2024-11-25 06:14:58 +00:00
Merge pull request #46 from android-police/feature/add-description-recentchanges-fields
Exposed descriptionHtml, recentChangesHtml, versionString and saleEnds in utils.py
This commit is contained in:
commit
425a3f8334
@ -232,6 +232,7 @@ message Offer {
|
|||||||
optional SubscriptionTerms subscriptionTerms = 12;
|
optional SubscriptionTerms subscriptionTerms = 12;
|
||||||
optional string formattedName = 13;
|
optional string formattedName = 13;
|
||||||
optional string formattedDescription = 14;
|
optional string formattedDescription = 14;
|
||||||
|
optional string saleEnds = 31;
|
||||||
}
|
}
|
||||||
message OwnershipInfo {
|
message OwnershipInfo {
|
||||||
optional int64 initiationTimestampMsec = 1;
|
optional int64 initiationTimestampMsec = 1;
|
||||||
|
File diff suppressed because one or more lines are too long
@ -8,11 +8,14 @@ def fromDocToDictionary(app):
|
|||||||
return {"docId": app.docid,
|
return {"docId": app.docid,
|
||||||
"title": app.title,
|
"title": app.title,
|
||||||
"author": app.creator,
|
"author": app.creator,
|
||||||
|
"description": app.descriptionHtml,
|
||||||
|
"recentChanges": app.details.appDetails.recentChangesHtml,
|
||||||
"offer": [{"micros": o.micros,
|
"offer": [{"micros": o.micros,
|
||||||
"currencyCode": o.currencyCode,
|
"currencyCode": o.currencyCode,
|
||||||
"formattedAmount": o.formattedAmount,
|
"formattedAmount": o.formattedAmount,
|
||||||
"checkoutFlowRequired": o.checkoutFlowRequired,
|
"checkoutFlowRequired": o.checkoutFlowRequired,
|
||||||
"offerType": o.offerType}
|
"offerType": o.offerType,
|
||||||
|
"saleEnds": o.saleEnds}
|
||||||
for o in app.offer],
|
for o in app.offer],
|
||||||
"images": [{"imageType": img.imageType,
|
"images": [{"imageType": img.imageType,
|
||||||
"width": img.dimension.width
|
"width": img.dimension.width
|
||||||
@ -25,6 +28,7 @@ def fromDocToDictionary(app):
|
|||||||
"supportsFifeUrlOptions": img.supportsFifeUrlOptions}
|
"supportsFifeUrlOptions": img.supportsFifeUrlOptions}
|
||||||
for img in app.image],
|
for img in app.image],
|
||||||
"versionCode": app.details.appDetails.versionCode,
|
"versionCode": app.details.appDetails.versionCode,
|
||||||
|
"versionString": app.details.appDetails.versionString,
|
||||||
"installationSize": app.details.appDetails.installationSize,
|
"installationSize": app.details.appDetails.installationSize,
|
||||||
"numDownloads": app.details.appDetails.numDownloads,
|
"numDownloads": app.details.appDetails.numDownloads,
|
||||||
"uploadDate": app.details.appDetails.uploadDate,
|
"uploadDate": app.details.appDetails.uploadDate,
|
||||||
@ -98,4 +102,4 @@ def hasDoc(obj):
|
|||||||
except TypeError:
|
except TypeError:
|
||||||
existance = False
|
existance = False
|
||||||
|
|
||||||
return existance
|
return existance
|
Loading…
Reference in New Issue
Block a user