Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode error #29

Closed
Stusbu opened this issue Sep 12, 2018 · 2 comments
Closed

Unicode error #29

Stusbu opened this issue Sep 12, 2018 · 2 comments

Comments

@Stusbu
Copy link

Stusbu commented Sep 12, 2018

Was trying to download Rhythm Thief's OST, and got a unicode error.

Traceback (most recent call last):
  File "C:\khinsider-master\khinsider.py", line 548, in <module>
    sys.exit(doIt())
  File "C:\khinsider-master\khinsider.py", line 498, in doIt
    success = download(soundtrack, outPath, formatOrder=formatOrder, verbose=Tru
e)
  File "C:\khinsider-master\khinsider.py", line 383, in download
    return Soundtrack(soundtrackId).download(path, makeDirs, formatOrder, verbos
e)
  File "C:\khinsider-master\khinsider.py", line 307, in download
    files.extend(self.images)
  File "C:\khinsider-master\khinsider.py", line 135, in lazyVersion
    setattr(self, attrName, func(self))
  File "C:\khinsider-master\khinsider.py", line 278, in images
    images = [File(urljoin(self.url, url)) for url in urls]
  File "C:\khinsider-master\khinsider.py", line 361, in __init__
    self.filename = unquote(str(url.rsplit('/', 1)[-1]))
UnicodeEncodeError: 'ascii' codec can't encode character u'\uff5e' in position 1
0: ordinal not in range(128)

I looked around the issues section and it may be an error on my part, I'm not sure. Just posting it here in case it isn't since it seems like you've fixed a lot of unicode errors. A quick google said that "u'\uff5e'" was the character "~" if that helps.

@obskyr
Copy link
Owner

obskyr commented Sep 13, 2018

As I stand on the brink of the mouth of Hell, God's almighty boot ready to bring upon me the ultimate punt, I will ask him: "Why, God? What have I done to deserve this?" He will answer, "Though your sins are pardoned, the Unicode errors have blackened your soul." As I fall into the depths, I will contemplate my life. Tears streaming off my face, falling beside me like empathic raindrops, I will realize: what God told me is true. The Unicode errors turned me into but a husk of what I once was; a hateful creature no longer trusting in the righteousness that is Unicode.

The bug has been fixed!

@obskyr obskyr closed this as completed in 688b59e Sep 13, 2018
@Stusbu
Copy link
Author

Stusbu commented Sep 13, 2018

Thanks man, very quick response as well. Just tested it out, and works perfectly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants