From 86217fd97487322270dc8f25a26529db37bc4b47 Mon Sep 17 00:00:00 2001 From: Sampson Date: Fri, 9 Aug 2024 14:42:52 -0500 Subject: [PATCH] introduces support for shortDescription addresses https://github.com/facundoolano/google-play-scraper/issues/687 --- README.md | 1 + index.d.ts | 1 + lib/app.js | 1 + test/lib.app.js | 1 + 4 files changed, 4 insertions(+) diff --git a/README.md b/README.md index 8ed12f36..451e720b 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,7 @@ Results: title: 'Google Translate', description: 'Translate between 103 languages by typing\r\n...' , descriptionHTML: 'Translate between 103 languages by typing
...', + shortDescription: 'The world is closer than ever with over 100 languages', summary: 'The world is closer than ever with over 100 languages', installs: '500,000,000+', minInstalls: 500000000, diff --git a/index.d.ts b/index.d.ts index 083324a8..7858309c 100644 --- a/index.d.ts +++ b/index.d.ts @@ -102,6 +102,7 @@ export interface IAppItemFullDetail extends IAppItem { title: string description: string descriptionHTML: string + shortDescription: string summary: string installs: string minInstalls: number diff --git a/lib/app.js b/lib/app.js index c778f82a..c854913b 100644 --- a/lib/app.js +++ b/lib/app.js @@ -49,6 +49,7 @@ const MAPPINGS = { path: ['ds:5', 1, 2], fun: helper.descriptionHtmlLocalized }, + shortDescription: ['ds:5', 1, 2, 73, 0, 1], summary: ['ds:5', 1, 2, 73, 0, 1], installs: ['ds:5', 1, 2, 13, 0], minInstalls: ['ds:5', 1, 2, 13, 1], diff --git a/test/lib.app.js b/test/lib.app.js index 27b04818..f3531daf 100644 --- a/test/lib.app.js +++ b/test/lib.app.js @@ -19,6 +19,7 @@ const validateAppDetails = (app) => { assert.isString(app.summary); assert.isString(app.description); assert.isString(app.descriptionHTML); + assert.isString(app.shortDescription); assert.isString(app.released); assert.equal(app.genreId, 'GAME_PUZZLE');