Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

App crashes when the checksum doesn't match #28

Description

@Pretzelek

Duplication steps:
run
C:\Program Files (x86)>pynps -D -zip -c psv -r jap _all

Enter the number for what you want to download, you can enter multiple numbers using commas: 2205-2206

App will try to download the 2205th entry:

[SEARCH] you're going to download the following files:
2205) PSV | PCSG01116 | JAP | DLC | 探索者たちの口伝集 [ 100 KiB]
2206) PSV | PCSG01116 | JAP | DLC | 追加クエスト『経験値どっさりクエスト』 [ 100 KiB]
Download files? [y/n]: y

[DOWNLOAD] 探索者たちの口伝集 (JP) [PCSG01116] for PSV
JP0106-PCSG01116_00-ADVSYSTEM0000001_bg_1_f5f2e3ae4bdc667bf29f992d933ad6c24e3ce 100%

[CHECKSUM] checksum not matching, pkg file is probably corrupted, delete it at your download folder and redownload the pkg
[CHECKSUM] corrupted file location: G:/Games/pynps/PKG/PSV/DLCS/JP0106-PCSG01116_00-ADVSYSTEM0000001_bg_1_f5f2e3ae4bdc667bf29f992d933ad6c24e3cedd4.pkg

Done! <- app stops, doesn't try to download 2206

This is caused by break in the cli.py file:
if sha256_dl != sha256_exp:
loc = f"{DLFOLDER}/PKG/{i['System']}/{i['Type']}/{i['PKG direct link'].split('/')[-1]}"
printft(HTML("[CHECKSUM] checksum not matching, pkg file is probably corrupted, delete it at your download folder and redownload the pkg"))
printft(HTML("[CHECKSUM] corrupted file location: %s") %loc)
break # skip file

Without that break, app fails gracefully and continues processing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions