• 1
  • 28
  • 29
  • 30(current)
  • 31
  • 32
  • 35
WIP Google Music Addon
I just found that Google has changed its api calls...
We will have to wait for a fix.
Heh, l that will do it. I reckon that is most likely my issue and it's not working for anyone. Weird coincidence?
Yeah, it broke a couple days ago. I'll post a log tomorrow.

Edit: Here's what it's doing:

00:03:22 T:884 NOTICE: [GoogleMusic-0.8exp20] Logging in
00:03:24 T:884 NOTICE: [GoogleMusic-0.8exp20] Login succeeded
00:03:24 T:884 NOTICE: [GoogleMusic-0.8exp20] getSongStreamUrl device: 318bbe4c71789c0c
00:03:24 T:884 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': '318bbe4c71789c0c', 'Authorization': '<omitted>'}, 'params': {'opt': 'hi', 'songid': 'b37b1dd1-0cd9-38bb-808e-6781094c3856', 'pt': 'e', 'slt': '1393823004228', 'sig': 'fMwvFEZynb56nkoqotEbyGhRUrc', 'net': 'wifi'}, '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 "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\default.py", line 50, in <module>
song.play(get("song_id"),params)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicPlaySong.py", line 16, in play
url = self.__getSongStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicPlaySong.py", line 46, in __getSongStreamUrl
return self.api.getSongStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicApi.py", line 92, in getSongStreamUrl
stream_url = self.api.get_stream_url(song_id, device_id)
File "<string>", line 2, in get_stream_url
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\gmusicapi\utils\utils.py", line 228, in wrapper
return function(*args, **kw)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\gmusicapi\clients\mobileclient.py", line 221, in get_stream_url
return self._make_call(mobileclient.GetStreamUrl, song_id, device_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\gmusicapi\clients\shared.py", line 80, in _make_call
return protocol.perform(self.session, self.validate, *args, **kwargs)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\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': '318bbe4c71789c0c', 'Authorization': '<omitted>'}, 'params': {'opt': 'hi', 'songid': 'b37b1dd1-0cd9-38bb-808e-6781094c3856', 'pt': 'e', 'slt': '1393823004228', 'sig': 'fMwvFEZynb56nkoqotEbyGhRUrc', 'net': 'wifi'}, '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<--
00:03:24 T:1392 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.googlemusic/?action=play_song&song_id=b37b1dd1-0cd9-38bb-808e-6781094c3856]
00:03:24 T:1388 NOTICE: Thread LanguageInvoker start, auto delete: false
00:03:24 T:1388 NOTICE: -->Python Interpreter Initialized<--
00:03:24 T:1388 NOTICE: GoogleMusic-0.8exp20 ARGV: ['plugin://plugin.audio.googlemusic/', '7', '?action=play_song&song_id=15e72a3c-8b80-3621-bd33-acd6dc10368f']
00:03:24 T:1388 NOTICE: [GoogleMusic-0.8exp20] Prefetch disabled or URL invalid or expired :
00:03:24 T:1388 NOTICE: warning: could not import appdirs; will use current directory
Any word on an API update? I miss this app so much...
(2014-03-05, 05:19)nbraunstein Wrote: Any word on an API update? I miss this app so much...

I may just be a special case but the plugin is working for me... I just downloaded about 30 mins ago (from links on first page). I logged in and am currently listening to an album from google music online.
I've installed the plugin yesterday as per mentioned process but can't find any content under categorizes and always receive empty search results.
For those having problems with recent Google changes, I have a new version with gmusicapi upgrade, please test:

Version 0.8exp21
Downloaded and installed from zip. Cleared cookies and cache and it worked for one song then got a script failed. Cleared again and no go. Uninstalled and reinstalled and still no go. Errors below.

22:46:39 T:3964 NOTICE: GoogleMusic-0.8exp21 ARGV: ['plugin://plugin.audio.googlemusic/', '23', '?action=play_song&song_id=d3cc0873-600c-3187-9b85-426974fcd00f']
22:46:39 T:3964 NOTICE: [GoogleMusic-0.8exp21] Prefetch disabled or URL invalid or expired :
22:46:40 T:3964 NOTICE: warning: could not import appdirs; will use current directory
22:46:40 T:3964 NOTICE: [GoogleMusic-0.8exp21] Loading auth from cache
22:46:40 T:3964 NOTICE: [GoogleMusic-0.8exp21] getStreamUrl device: 318bbe4c71789c0c
22:46:40 T:3964 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': '3570156365151771660', 'Authorization': '<omitted>'}, 'params': {'opt': 'hi', 'songid': 'd3cc0873-600c-3187-9b85-426974fcd00f', 'pt': 'e', 'slt': '1394592400199', 'sig': 'q_DL-Q-5y1KPNaqIwrHwZFj7Toc', 'net': 'wifi'}, '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 "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\default.py", line 50, in <module>
song.play(get("song_id"),params)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicPlaySong.py", line 16, in play
url = self.__getSongStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicPlaySong.py", line 46, in __getSongStreamUrl
return self.api.getSongStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicApi.py", line 104, in getSongStreamUrl
stream_url = self.login.getStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicLogin.py", line 41, in getStreamUrl
stream_url = self.gmusicapi.get_stream_url(song_id, device_id)
File "<string>", line 2, in get_stream_url
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\gmusicapi\utils\utils.py", line 250, in wrapper
return function(*args, **kw)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\gmusicapi\clients\mobileclient.py", line 210, in get_stream_url
return self._make_call(mobileclient.GetStreamUrl, song_id, device_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\gmusicapi\clients\shared.py", line 80, in _make_call
return protocol.perform(self.session, self.validate, *args, **kwargs)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\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': '3570156365151771660', 'Authorization': '<omitted>'}, 'params': {'opt': 'hi', 'songid': 'd3cc0873-600c-3187-9b85-426974fcd00f', 'pt': 'e', 'slt': '1394592400199', 'sig': 'q_DL-Q-5y1KPNaqIwrHwZFj7Toc', 'net': 'wifi'}, '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<--
22:46:40 T:2020 ERROR: Playlist Player: skipping unplayable item: 17, path [plugin://plugin.audio.googlemusic/?action=play_song&song_id=d3cc0873-600c-3187-9b85-426974fcd00f]

The items that I uploaded into my library work fine. It's the all access stuff that doesn't work.
Ok, second try:

Version 0.8exp22
Music 
Cool All Access is working great, thanks for the work .
Thanks. Looks like it's working again..... until Google changes the API for the 50th time... bleh.
Legends! Works a dream again Smile

Though - I wonder this, is there any way to get rid of the "Opening Stream" window that keeps popping up between tracks?
Great job, works like a charm.
Thanks a lot
Works like a charm again. You just made my evening. I have missed this.
EDIT: Resolved issue by forcing an update on the repo's and rebooting.
  • 1
  • 28
  • 29
  • 30(current)
  • 31
  • 32
  • 35

Logout Mark Read Team Forum Stats Members Help
Google Music Addon5