-
Notifications
You must be signed in to change notification settings - Fork 46
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
Does not support non-ascii songurl with Python 2 #79
Comments
I'm not sure if broken Python 2 support is a real bug nowadays... If you can use Py3, then use Py3. (Even Mutagen has been ported already.) That said:
(FWIW, I'm testing the Python 2 version against python-mpd 0.3.0.) |
Sorry for the confusion. Title and description updated. According to the exception, the problem is not about metadata, but |
Yes, I've tested that as well. Actually, could you try inserting the following above the failing line in
|
I've tried adding two print(repr(song_url), type(song_url))
print(repr(params['music_dir']), type(params['music_dir'])) and the result is:
|
Can't imagine where it gets the latter one from. Could you test something else, though – your locale settings? What does I've noticed Python 2 handles UTF-8 paths fine as long as the system locale is also an UTF-8 one. |
|
¯_(ツ)_/¯ This seems to be one of those situations where Python chooses string types through a dice roll, and as a result the Python 2 code needs to be the exact opposite of Python 3 code... Or something. Will take a look again later. In the mean time you're encouraged again to mgirate to Python 3. |
Well, this program doesn't seem to be fully unicode-aware. Since in Python2 the |
The question is how |
That's because |
Due to different handling of string and bytes, mpDris running with Python 2 does not support non-ascii chars in
song_url
:With Python 3:
The text was updated successfully, but these errors were encountered: