Skip to content

Commit 24cf41d

Browse files
authored
Merge pull request #56 from JedrekDabrowski/JedrekDabrowski/add-notes-support-on-android
2 parents 030a2be + 17f32aa commit 24cf41d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/providers/android.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ export const getAndroidVersion = async (bundleId, country) => {
2424

2525
const text = await res.text();
2626
const version = text.match(/\[\[\[['"]((\d+\.)+\d+)['"]\]\],/)[1];
27+
const notes = text.match(/<div itemprop="description">(.*?)<\/div>/)?.[1];
2728

2829
return {
2930
version: version || null,
3031
releasedAt: (new Date()).toISOString(),
31-
notes: "",
32+
notes: notes || "",
3233
url: `https://play.google.com/store/apps/details?id=${bundleId}&hl=${country}`,
3334
lastChecked: (new Date()).toISOString()
3435
};

0 commit comments

Comments
 (0)