2016-10-11, 01:04
(2016-10-10, 23:49)mingus2 Wrote:(2016-09-18, 08:03)d91813 Wrote: Hi All, i've checked back on the threads and noticed a few people have had the same issue but apart from the plan of uninstall, delete plugin info and reinstall (that isn't working) there doesn't seem to be a workround for the Ascii error on OSX running 16.1. I have only normal letters in my username and password (apart from a capital M) and my account isn't through facebook.
Can anyone confirm they have this working on El Capitan on 16.1?
Any help greatly appreciated
Thanks
I can't get it to work either on El Capitan or Sierra. Same error.
The error happens in httpproxy.py in create_user_token(). I'm guessing that "user_agent" is in UTF-8 and because base_token - created in create_base_token() above - is just an ascii string the str.jojn throws an exception.
Python seems to have a myriad ways of dealing with unicode, there's some weird stuff about "from __future__ import unicode_literals" as a python option to make python 2 more flexible but I don't really understand what it's doing.
I've had the quickest of plays but I'd have to learn python to help more. Hope the above helps a bit, not sure why it's just a Mac thing.
And to answer my own question. Yes - if you replace the variable user_agent with the ascii string 'Spotify/1.0.22 (XBMC/16.1 Git:2016-04-24-c327c53' on line 64 of httpproxy.py it all works fine. This is a hack not a fix but at least the plugin works.