Open Aliaksandr-Kasko-JazzTeam opened 2 years ago
seems like the data key for the whole app is ds:5
instead of ds:4
.
Maybe it can be done via the ServiceRequestId by searching for the "service reqeust id" Ws7gDc
(not sure if it does change tho)
https://github.com/facundoolano/google-play-scraper/blob/91a945b4e60d8e051154b6a9cb8cdf82adea2253/lib/utils/scriptData.js#L13-L25
The above code snippet already searches the data key for the given id but you'd have to provide the useServiceRequestId to every individual mapping of the mapping const.
Example AF_dataServiceRequests
for an app from the US store. The app from the KR, TW, HK store would return something similar but ds:4
-> ds:5
and ds:5
-> ds:6
{...
"ds:4":{
"id":"Ws7gDc",
"request":[
null,
null,
[
[
1,
9,
10,
11
]
],
null,
[
[
"com.studiolb.tamingmaster",
7
]
]
]
},
"ds:5":{
"id":"Ws7gDc",
"request":[
null,
null,
[
[
137
]
],
null,
[
[
"com.studiolb.tamingmaster",
7
]
]
]
},...
}
Unfortunate i don't have any time to implement and test it
UPD. I also found that it affects on th
and au
markets.
@Aliaksandr-Kasko-JazzTeam i've opened #572 but i still need to test it and also fix the family genre mapping
@knirpsfass for now I can confirm that for th market your PR works fine
Description:
Example code:
Error message:
First error on descriptionText
If I add nullsafe to description like this
function descriptionText (description = '') {
then I got an error in another place:But here I can't find a quick fix anymore.
Maybe there's some mismatch with mappings for these markets