Code:
2019-06-06 10:13:35.861 T:62252 NOTICE: [PlayMusicEXP-2.0~beta2] getStreamUrl song id: T4qwup7lommv7bc6uuqpmr7snfi device: quality: hi
2019-06-06 10:13:36.130 T:62252 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 for url: https://mclients.googleapis.com/music/mplay?opt=hi&mjck=T4qwup7lommv7bc6uuqpmr7snfi&pt=e&slt=1559780015868&tier=aa&sig=P-i5AqDkrUiaGcCJbrwwbiGtMZk&hl=en_US&dv=0&net=mob
(requests kwargs: {u'url': u'https://mclients.googleapis.com/music/mplay', u'headers': {u'X-Device-ID': '', 'Authorization': u'<omitted>'}, u'allow_redirects': False, u'params': {u'opt': 'hi', u'mjck': 'T4qwup7lommv7bc6uuqpmr7snfi', u'pt': u'e', u'slt': '1559780015868', 'tier': 'aa', u'sig': 'P-i5AqDkrUiaGcCJbrwwbiGtMZk', 'hl': 'en_US', 'dv': 0, u'net': u'mob'}, u'method': u'GET'})
(response was: u'<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 "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\addon.py", line 15, in <module>
PlaySong().play(params)
File "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\playsong.py", line 16, in play
params = self.__getSongStreamUrl(song_id, params)
File "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\playsong.py", line 67, in __getSongStreamUrl
wentry_id=params.pop('wentryid', None))
File "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\api.py", line 49, in getSongStreamUrl
stream_url = self.getLogin().getStreamUrl(song_id, session_token=session_token, wentry_id=wentry_id)
File "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\login.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 "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\gmusicapi\utils\utils.py", line 294, in wrapper
return function(*args, **kw)
File "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\gmusicapi\clients\mobileclient.py", line 453, in get_stream_url
return self._make_call(mobileclient.GetStreamUrl, song_id, device_id, quality)
File "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\gmusicapi\clients\mobileclient.py", line 45, in _make_call
return super(Mobileclient, self)._make_call(protocol, *args, **kwargs)
File "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\gmusicapi\clients\shared.py", line 90, in _make_call
return protocol.perform(self.session, self.validate, *args, **kwargs)
File "C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\gmusicapi\protocol\shared.py", line 230, in perform
raise CallFailure(err_msg, call_name)
CallFailure: GetStreamUrl: 403 Client Error: Forbidden for url: https://mclients.googleapis.com/music/mplay?opt=hi&mjck=T4qwup7lommv7bc6uuqpmr7snfi&pt=e&slt=1559780015868&tier=aa&sig=P-i5AqDkrUiaGcCJbrwwbiGtMZk&hl=en_US&dv=0&net=mob
(requests kwargs: {u'url': u'https://mclients.googleapis.com/music/mplay', u'headers': {u'X-Device-ID': '', 'Authorization': u'<omitted>'}, u'allow_redirects': False, u'params': {u'opt': 'hi', u'mjck': 'T4qwup7lommv7bc6uuqpmr7snfi', u'pt': u'e', u'slt': '1559780015868', 'tier': 'aa', u'sig': 'P-i5AqDkrUiaGcCJbrwwbiGtMZk', 'hl': 'en_US', 'dv': 0, u'net': u'mob'}, u'method': u'GET'})
(response was: u'<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<--
2019-06-06 10:13:36.137 T:62252 DEBUG: CPythonInvoker::onExecutionDone(68, C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\addon.py)
2019-06-06 10:13:36.267 T:62252 INFO: Python interpreter stopped
EDIT2: Fixed. I needed to add Device ID after deleting my old plugins preferences.