Open dph121 opened 1 year ago
Oh. That looks like that's a utf8 dash in the filename as opposed to a hypen. I think I may need to revisit the path escaping code
Hi!
I believe I have a fix for smeared unicode characters in this branch here: https://github.com/N64Core/itchio/commit/7c7a70d9fe606819698865af9c81fdd4a9ded7b2
I only hazily remember what the issue is, I believe it has something to do with how the = operator and unicode strings interact, but it's been several months.
Once my existing PR gets merged in I can submit it upstream
Edit: Confirmed that title generates the filename correctly on that branch:
One of the files in the game https://ladyorthetiger.itch.io/platonic-pirates is named
Platonic Pirates — Light.pdf
. When I run the program, either as a complete library download or downloading just the game, the file is stored on my computer asPlatonic Pirates â Light.pdf
, after which the program crashes with the following dialogue:My bughunt lead me to line 95 in game.py producing an "output filename" string that doesn't match what the actual filename is in the output folder. This results in line 99 assuming a file has not been downloaded, and line 187 crashing the program by trying to determine a checksum of a file that does not exist.
This is on Windows 11, so the specific filename replacement might not be reproduced on other machines. I am capable of downloading many other files.