镜像自地址
https://github.com/THZoria/NX_Firmware.git
已同步 2026-04-09 10:41:13 +00:00
Fix: Ignore case for exFAT file identification (Fixes 404 on 22.1.0)
这个提交包含在:
@@ -181,7 +181,7 @@ def dltitle(title_id, version, is_su=False):
|
|||||||
except HTTPError as e:
|
except HTTPError as e:
|
||||||
if e.response is not None and e.response.status_code == 404:
|
if e.response is not None and e.response.status_code == 404:
|
||||||
print(f"INFO: Title {title_id} version {version} not found (404).")
|
print(f"INFO: Title {title_id} version {version} not found (404).")
|
||||||
if title_id == "010000000000081B":
|
if title_id.lower() == "010000000000081b":
|
||||||
sv_nca_exfat = ""
|
sv_nca_exfat = ""
|
||||||
return
|
return
|
||||||
raise
|
raise
|
||||||
@@ -201,9 +201,9 @@ def dltitle(title_id, version, is_su=False):
|
|||||||
dltitle(t_id, ver)
|
dltitle(t_id, ver)
|
||||||
else:
|
else:
|
||||||
for nca_id, nca_hash in parse_cnmt(cnmt_nca):
|
for nca_id, nca_hash in parse_cnmt(cnmt_nca):
|
||||||
if title_id == "0100000000000809":
|
if title_id.lower() == "0100000000000809":
|
||||||
sv_nca_fat = f"{nca_id}.nca"
|
sv_nca_fat = f"{nca_id}.nca"
|
||||||
elif title_id == "010000000000081B":
|
elif title_id.lower() == "010000000000081b":
|
||||||
sv_nca_exfat = f"{nca_id}.nca"
|
sv_nca_exfat = f"{nca_id}.nca"
|
||||||
|
|
||||||
if nca_id not in queued_ncas:
|
if nca_id not in queued_ncas:
|
||||||
@@ -296,8 +296,8 @@ if __name__ == "__main__":
|
|||||||
dlfiles(update_dls)
|
dlfiles(update_dls)
|
||||||
|
|
||||||
if not sv_nca_exfat:
|
if not sv_nca_exfat:
|
||||||
print("INFO: exFAT not found via meta — direct attempt 010000000000081B…")
|
print("INFO: exFAT not found via meta — direct attempt 010000000000081b…")
|
||||||
dltitle("010000000000081B", ver_raw, is_su=False)
|
dltitle("010000000000081b", ver_raw, is_su=False)
|
||||||
if sv_nca_exfat:
|
if sv_nca_exfat:
|
||||||
dlfiles(update_dls)
|
dlfiles(update_dls)
|
||||||
else:
|
else:
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户