2015-05-29, 19:29
I have similar problem like MCipher. I tested both last alfa versions (1.4a2 and 1.4a3). I can update datas from google music and browse them, but everytime I try to play song, I get error.
My config: RaspBerry Pi2 with last OpenElec (Czech Republic); two factor auth enabled
Thanks for your work and this wonderful plugin.
Code:
19:15:13 T:884995136 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'gmusicapi.exceptions.CallFailure'>
Error Contents: GetStreamUrl: 403 Client Error: Forbidden
(requests kwargs: {'headers': {'X-Device-ID': '3578878476221125226', 'Authorization': '<omitted>'}, 'params': {'opt': 'hi', 'songid': '2c52a480-d150-3d1c-b678-4988e172e25b', 'pt': 'e', 'slt': 'xxxxx', 'sig': 'xxxxx', 'net': 'mob'}, 'url': 'https://android.clients.google.com/music/mplay', 'verify': False, 'allow_redirects': False, 'method': 'GET'})
(response was: '<HTML>\n<HEAD>\n<TITLE>Forbidden</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Forbidden</H1>\n<H2>Error 403</H2>\n</BODY>\n</HTML>\n')
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/default.py", line 13, in <module>
GoogleMusicPlaySong.GoogleMusicPlaySong().play(params)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicPlaySong.py", line 13, in play
params = self.__getSongStreamUrl(song_id, params)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicPlaySong.py", line 53, in __getSongStreamUrl
params['url'] = self.api.getSongStreamUrl(song_id)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicApi.py", line 71, in getSongStreamUrl
stream_url = self.getLogin().getStreamUrl(song_id)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicLogin.py", line 34, in getStreamUrl
return self.gmusicapi.get_stream_url(song_id, device_id, quality)
File "<string>", line 2, in get_stream_url
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/utils/utils.py", line 251, in wrapper
return function(*args, **kw)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/clients/mobileclient.py", line 248, in get_stream_url
return self._make_call(mobileclient.GetStreamUrl, song_id, device_id, quality)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/clients/shared.py", line 80, in _make_call
return protocol.perform(self.session, self.validate, *args, **kwargs)
File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/protocol/shared.py", line 226, in perform
raise CallFailure(err_msg, call_name)
CallFailure: GetStreamUrl: 403 Client Error: Forbidden
(requests kwargs: {'headers': {'X-Device-ID': 'xxxxx', 'Authorization': '<omitted>'}, 'params': {'opt': 'hi', 'songid': 'xxxxx', 'pt': 'e', 'slt': 'xxxxx', 'sig': 'xxxxx', 'net': 'mob'}, 'url': 'https://android.clients.google.com/music/mplay', 'verify': False, 'allow_redirects': False, 'method': 'GET'})
(response was: '<HTML>\n<HEAD>\n<TITLE>Forbidden</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Forbidden</H1>\n<H2>Error 403</H2>\n</BODY>\n</HTML>\n')
-->End of Python script error report<--
My config: RaspBerry Pi2 with last OpenElec (Czech Republic); two factor auth enabled
Thanks for your work and this wonderful plugin.