From fb77608da93fa62ca38e9e173caf1c1a54fae276 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mKO?= Date: Wed, 8 Apr 2026 18:04:07 +0200 Subject: [PATCH] Fix: Ignore case for exFAT file identification (Fixes 404 on 22.1.0) --- firmware_downloader.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware_downloader.py b/firmware_downloader.py index a69d1b3..f650309 100644 --- a/firmware_downloader.py +++ b/firmware_downloader.py @@ -181,7 +181,7 @@ def dltitle(title_id, version, is_su=False): except HTTPError as e: if e.response is not None and e.response.status_code == 404: print(f"INFO: Title {title_id} version {version} not found (404).") - if title_id == "010000000000081B": + if title_id.lower() == "010000000000081b": sv_nca_exfat = "" return raise @@ -201,9 +201,9 @@ def dltitle(title_id, version, is_su=False): dltitle(t_id, ver) else: 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" - elif title_id == "010000000000081B": + elif title_id.lower() == "010000000000081b": sv_nca_exfat = f"{nca_id}.nca" if nca_id not in queued_ncas: @@ -296,8 +296,8 @@ if __name__ == "__main__": dlfiles(update_dls) if not sv_nca_exfat: - print("INFO: exFAT not found via meta — direct attempt 010000000000081B…") - dltitle("010000000000081B", ver_raw, is_su=False) + print("INFO: exFAT not found via meta — direct attempt 010000000000081b…") + dltitle("010000000000081b", ver_raw, is_su=False) if sv_nca_exfat: dlfiles(update_dls) else: @@ -320,4 +320,4 @@ if __name__ == "__main__": print(f"Archive created: {out_zip}") print(f"SystemVersion NCA FAT: {sv_nca_fat or 'Not Found'}") print(f"SystemVersion NCA exFAT: {sv_nca_exfat or 'Not Found'}") - print("Verify hashes before installation!") \ No newline at end of file + print("Verify hashes before installation!")