mirror of
https://github.com/Radiquum/anixart-patcher.git
synced 2025-09-07 19:53:50 +05:00
fix: kodik player link parse and custom version name in bug report to developer
This commit is contained in:
parent
831c2919b8
commit
5de0a942ef
2 changed files with 15 additions and 3 deletions
|
@ -54,7 +54,7 @@ def apply(patch_conf: PatchConfig_ChangeAppVersion) -> bool:
|
|||
|
||||
for filename in files:
|
||||
file_path = os.path.join(root, filename)
|
||||
if os.path.isfile(file_path) and filename.endswith(".smali"):
|
||||
if os.path.isfile(file_path) and filename.endswith(".smali") and filename not in ["DeviceInfoUtil.smali"]:
|
||||
file_contents = None
|
||||
with open(file_path, "r", encoding="utf-8") as file:
|
||||
file_contents = file.read()
|
||||
|
@ -80,7 +80,7 @@ def apply(patch_conf: PatchConfig_ChangeAppVersion) -> bool:
|
|||
patch_conf["version_name"] or patch_conf["_internal_app_version"],
|
||||
)
|
||||
log.debug(f"replaced version name in file: {file_path}")
|
||||
log.debug(f"previous: {patch_conf["_internal_app_build"]}")
|
||||
log.debug(f"previous: {patch_conf["_internal_app_version"]}")
|
||||
log.debug(f"replaced: {patch_conf["version_code"]}")
|
||||
|
||||
with open(file_path, "w", encoding="utf-8") as file:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"base_url": "https://api-s.anixsekai.com/",
|
||||
"base_url": "",
|
||||
"values": [
|
||||
{
|
||||
"file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/ConfigApi.smali",
|
||||
|
@ -16,6 +16,18 @@
|
|||
{
|
||||
"file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/EpisodeApi.smali",
|
||||
"value": "episode/{releaseId}"
|
||||
},
|
||||
{
|
||||
"file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/EpisodeApi.smali",
|
||||
"value": "episode/{releaseId}/{typeId}"
|
||||
},
|
||||
{
|
||||
"file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/EpisodeApi.smali",
|
||||
"value": "episode/{releaseId}/{typeId}/{sourceId}"
|
||||
},
|
||||
{
|
||||
"file_path": "smali_classes2/com/swiftsoft/anixartd/network/api/EpisodeApi.smali",
|
||||
"value": "episode/target/{releaseId}/{sourceId}/{position}"
|
||||
}
|
||||
],
|
||||
"constants": []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue