2017-07-22, 12:41
I have been using Pandoki to stream Pandora but unfortunately Pandora is shutting down for NZ and Aus. Thinking about going down the Google Music route so long as I can manage it nicely through Kodi. This add-on seems pretty solid but I can't seem to find how to view/start my saved stations?
Also, the search function seems a bit hit and miss wrt to unicode characters?
EDIT:
Added the following at line 428 in GoogleMusicNavigation.py and the unicode issue seems to be resolved.
Also, the search function seems a bit hit and miss wrt to unicode characters?
Code:
22:32:42.077 T:1620 NOTICE: [GoogleMusicEXP-1.11.1] ARGV: ['plugin://plugin.audio.googlemusic.exp/', '32', '?path=search']
22:32:42.161 T:1620 NOTICE: [GoogleMusicEXP-1.11.1] PATH: search
22:33:02.335 T:6628 NOTICE: [GoogleMusicEXP-1.11.1] ARGV: ['plugin://plugin.audio.googlemusic.exp/', '33', '?path=search_query&query=amy%20winehouse']
22:33:02.413 T:6628 NOTICE: [GoogleMusicEXP-1.11.1] PATH: search_query
22:33:02.413 T:6628 NOTICE: [GoogleMusicEXP-1.11.1] API getsearch: amy%20winehouse
22:33:02.640 T:6628 NOTICE: [GoogleMusicEXP-1.11.1] Loading auth from cache
22:33:03.918 T:6628 NOTICE: [GoogleMusicEXP-1.11.1] Loaded 0 tracks (0 art miss)
22:33:03.918 T:6628 NOTICE: [GoogleMusicEXP-1.11.1] Loaded 0 albums (0 art miss)
22:33:03.918 T:6628 NOTICE: [GoogleMusicEXP-1.11.1] API search results: tracks 0 albums 0 artists 0 stations 0 videos 20
22:33:03.924 T:6628 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.UnicodeEncodeError'>
Error Contents: 'ascii' codec can't encode character u'\xb4' in position 19: ordinal not in range(128)
Traceback (most recent call last):
File "C:\Users\benja\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\default.py", line 40, in <module>
GoogleMusicNavigation.GoogleMusicNavigation().listMenu(params)
File "C:\Users\benja\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\GoogleMusicNavigation.py", line 132, in listMenu
listItems = self.getSearch(get("query"))
File "C:\Users\benja\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\GoogleMusicNavigation.py", line 553, in getSearch
listItems.append(self.createFolder(video['title'],{'action':'play_yt','display_name':video['title']}))
File "C:\Users\benja\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\GoogleMusicNavigation.py", line 428, in createFolder
return "?".join([utils.addon_url, urlencode(params)]), li, "true"
File "C:\Program Files (x86)\Kodi\system\python\Lib\urllib.py", line 1347, in urlencode
v = quote_plus(str(v))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xb4' in position 19: ordinal not in range(128)
-->End of Python script error report<--
EDIT:
Added the following at line 428 in GoogleMusicNavigation.py and the unicode issue seems to be resolved.
Code:
for key, value in params.iteritems():
#utils.log("key: "+key.encode('utf-8')+" value: "+value.encode('utf-8'))
params[key] = value.encode('utf-8')