From 584e0053d4272949921d83092d38d1ef1e2ee2ea 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 --- index.d.ts | 1 + lib/app.js | 1 + test/lib.app.js | 1 + 3 files changed, 3 insertions(+) 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');