Closed Shiryou closed 5 years ago
@m-lohmann Did it have no effect at all? What OS are you running this on and on which version of Python? I'm a bit new to troubleshooting Python, so any further information would help.
I made a fresh install of Windows 10 just 2 days ago and installed the latest version of Anaconda 2 (v5.1.0, Python 2.7) yesterday. As far as I’m aware gogrepo is not compatible with Python 3.
I applied your hotfix to my gorgepo.py file and ran gogrepo.py, resulting in the same undecoded parentheses in the file names.
Judging purely by a quick overview of the source, gogrepo.py should be compatible with Python 2 and Python 3. After running it with 3.4 it couldn't do a dry run of my downloads, so it seems you're right. I'll look into it a bit, but we may need to rely on someone with more experience to fix this.
Could it be somehow related to this?
https://stackoverflow.com/questions/5139249/python-url-unquote-followed-by-unicode-decode
I'm in the desert for the weekend. See if the terminal encoding is set to UTF-8 or ANSI. https://superuser.com/a/1170658
If that doesn't solve it, try what you linked. Since I can't replicate it, I can't see if it solves the issue.
@m-lohmann Did you run gogrepo.py update
again so that the new file names get saved in the manifest?
Thanks, @icemanx7! This solved the problem!
Thank you!
Use the unquote function in urllib to decode the parentheses in GOG's new filename format.