thesadru / genshinstats

PLEASE USE GENSHIN.PY A python library that can get the stats of Genshin Impact players using Mihoyo's API. PLEASE USE GENSHIN.PY
https://thesadru.github.io/pdoc/genshinstats/
MIT License
268 stars 38 forks source link

Fixed fetch_endpoint with chinese account #30

Closed grasssand closed 3 years ago

grasssand commented 3 years ago

Chinese site https://bbs.mihoyo.com/ys/ use different ds. See https://github.com/SilveryStar/Adachi-BOT/blob/master/src/plugins/genshin/utils/ds.ts

thesadru commented 3 years ago

Also, I don't have access to any Chinese accounts meaning I do not have any cookies to test with. Would be possible if you could provide one? If you want to make sure nobody else can see them then you can email them to thesadru@gmail.com. Would gladly appreciate it.

grasssand commented 3 years ago

Also, I don't have access to any Chinese accounts meaning I do not have any cookies to test with. Would be possible if you could provide one? If you want to make sure nobody else can see them then you can email them to thesadru@gmail.com. Would gladly appreciate it.

I fixed it and sent the token for you

thesadru commented 3 years ago

Thanks, I'll just bump the version and release it on pypi.