Update StarRail.py

This commit is contained in:
Kiera Affarantia 2023-06-28 20:47:45 +07:00 committed by GitHub
parent 4a7374ece8
commit 9f8ccc5814
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ if __name__ == "__main__":
with open('README.md','a+') as readme: with open('README.md','a+') as readme:
readme.seek(0) readme.seek(0)
sys.stdout = readme sys.stdout = readme
stringContent=str(requests.get('https://hkrpg-launcher-static.hoyoverse.com/hkrpg_global/mdk/launcher/api/resource?channel_id=1&key=btiiBrnBdZpK1Zy5&launcher_id=32&sub_channel_id=0').content,'utf-8') stringContent=str(requests.get('https://hkrpg-launcher-static.hoyoverse.com/hkrpg_global/mdk/launcher/api/resource?channel_id=1&key=vplOVX8Vn7cwG8yb&launcher_id=35&sub_channel_id=0').content,'utf-8')
jsonFile=json.loads(readme.read().strip().strip('```'),object_pairs_hook=collections.OrderedDict) jsonFile=json.loads(readme.read().strip().strip('```'),object_pairs_hook=collections.OrderedDict)
changed = False changed = False
pre_download_game=None pre_download_game=None