add 3 more

This commit is contained in:
Rene 2024-01-16 15:57:26 +09:00
parent c65fce7472
commit 045354d7ba
6 changed files with 144 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
import sys
import json
import requests
import collections
if __name__ == "__main__":
with open('KR.md','a+') as readme:
readme.seek(0)
sys.stdout = readme
stringContent=str(requests.get('https://id-public-api.serenetia.com/api/bh3_kr').content,'utf-8')
jsonFile=json.loads(readme.read().strip().strip('```'),object_pairs_hook=collections.OrderedDict)
changed = False
pre_download_game=None
try:
pre_download_game=json.loads(stringContent)['data']['pre_download_game']
except:
pre_download_game=""
if jsonFile['pre_download_game']!=pre_download_game:
jsonFile['pre_download_game']=pre_download_game
changed=True
latest=json.loads(stringContent)['data']['game']['latest']
if jsonFile['latest']!=latest:
deprecated_packages=jsonFile['deprecated_packages']
deprecated_packages.append(jsonFile['latest'])
jsonFile['latest']=latest
changed=True
if changed:
readme.seek(0)
readme.truncate()
print('```\n'+json.dumps(jsonFile,ensure_ascii=False,indent=4,separators=(',',':'))+'\n```')

View File

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
import sys
import json
import requests
import collections
if __name__ == "__main__":
with open('SEA.md','a+') as readme:
readme.seek(0)
sys.stdout = readme
stringContent=str(requests.get('https://id-public-api.serenetia.com/api/bh3_overseas').content,'utf-8')
jsonFile=json.loads(readme.read().strip().strip('```'),object_pairs_hook=collections.OrderedDict)
changed = False
pre_download_game=None
try:
pre_download_game=json.loads(stringContent)['data']['pre_download_game']
except:
pre_download_game=""
if jsonFile['pre_download_game']!=pre_download_game:
jsonFile['pre_download_game']=pre_download_game
changed=True
latest=json.loads(stringContent)['data']['game']['latest']
if jsonFile['latest']!=latest:
deprecated_packages=jsonFile['deprecated_packages']
deprecated_packages.append(jsonFile['latest'])
jsonFile['latest']=latest
changed=True
if changed:
readme.seek(0)
readme.truncate()
print('```\n'+json.dumps(jsonFile,ensure_ascii=False,indent=4,separators=(',',':'))+'\n```')

View File

@ -0,0 +1,30 @@
# -*- coding: utf-8 -*-
import sys
import json
import requests
import collections
if __name__ == "__main__":
with open('TW.md','a+') as readme:
readme.seek(0)
sys.stdout = readme
stringContent=str(requests.get('https://id-public-api.serenetia.com/api/bh3_tw').content,'utf-8')
jsonFile=json.loads(readme.read().strip().strip('```'),object_pairs_hook=collections.OrderedDict)
changed = False
pre_download_game=None
try:
pre_download_game=json.loads(stringContent)['data']['pre_download_game']
except:
pre_download_game=""
if jsonFile['pre_download_game']!=pre_download_game:
jsonFile['pre_download_game']=pre_download_game
changed=True
latest=json.loads(stringContent)['data']['game']['latest']
if jsonFile['latest']!=latest:
deprecated_packages=jsonFile['deprecated_packages']
deprecated_packages.append(jsonFile['latest'])
jsonFile['latest']=latest
changed=True
if changed:
readme.seek(0)
readme.truncate()
print('```\n'+json.dumps(jsonFile,ensure_ascii=False,indent=4,separators=(',',':'))+'\n```')

18
First Anime Game/KR.md Normal file
View File

@ -0,0 +1,18 @@
```
{
"pre_download_game":null,
"latest":{
"name":"",
"version":"7.1.0",
"path":"https://hk-bigfile-kr-mihayo.akamaized.net/ptpublic/bh3_kr/20231204164421_f2LYhhAJyW903nQN/BH3_v7.1.0_d4bd6e31f501.7z",
"size":"28902945884",
"md5":"7582abb3abac23c1702cc76d9582832d",
"entry":"BH3.exe",
"voice_packs":[],
"decompressed_path":"https://hk-bigfile-kr-mihayo.akamaized.net/ptpublic/bh3_kr/20231204164421_f2LYhhAJyW903nQN/extract",
"segments":[],
"package_size":"14446230062"
},
"deprecated_packages":[]
}
```

18
First Anime Game/SEA.md Normal file
View File

@ -0,0 +1,18 @@
```
{
"pre_download_game":null,
"latest":{
"name":"",
"version":"7.1.0",
"path":"https://hk-bigfile-os-mihayo.akamaized.net/ptpublic/bh3_overseas/20231204163705_6YUz9B725pAbnqVL/BH3_v7.1.0_d4bd6e31f501.7z",
"size":"29925425724",
"md5":"1311929d0b81541f6971e9232e945232",
"entry":"BH3.exe",
"voice_packs":[],
"decompressed_path":"https://hk-bigfile-os-mihayo.akamaized.net/ptpublic/bh3_overseas/20231204163705_6YUz9B725pAbnqVL/extract",
"segments":[],
"package_size":"14957469982"
},
"deprecated_packages":[]
}
```

18
First Anime Game/TW.md Normal file
View File

@ -0,0 +1,18 @@
```
{
"pre_download_game":null,
"latest":{
"name":"",
"version":"7.1.0",
"path":"https://hk-bigfile-asia-mihayo.akamaized.net/ptpublic/bh3_tw/20231204164327_8tpPZqik6C0x1DO1/BH3_v7.1.0_d4bd6e31f501.7z",
"size":"28947197292",
"md5":"c63cfa0d5c8a217f2465d2dbcd39516c",
"entry":"BH3.exe",
"voice_packs":[],
"decompressed_path":"https://hk-bigfile-asia-mihayo.akamaized.net/ptpublic/bh3_tw/20231204164327_8tpPZqik6C0x1DO1/extract",
"segments":[],
"package_size":"14468355766"
},
"deprecated_packages":[]
}
```