does anyone know why the import script start with the webstatic-sea.hoyoverse.com version of the URL and remake it in to the hk4e-api-os.hoyoverse.com version of the URL? In the data_2 file there seems to be pairs of webstatic-sea.hoyoverse.com and hk4e-api-os.hoyoverse.com version with idential URI which has the same params the importer.ps1 checks.
For one JSON object in data_2, above it there's two URLs. The webstatic version doesn't give proper results and the hk4e-api-os version gives good results. Adjusting the page, size, lang, and gacha_type gives the data the user wants.
It seems the getlink.ps1 file takes the webstatic version and remake it to the hk4e-api-os version but I can't see a reason why. Does someone know the reason?
Link to importer.ps1
https://gist.github.com/MadeBaruna/9ff8b7a2af11f3002395af7963b5ed18
Link to getlink.ps1
https://gist.github.com/MadeBaruna/1d75c1d37d19eca71591ec8a31178235