Work in Progress - Google Music Addon

  Thread Rating:
  • 4 Votes - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
foreverguest Offline
Member
Posts: 99
Joined: Oct 2012
Reputation: 4
Post: #436
I just found that Google has changed its api calls...
We will have to wait for a fix.
find quote
nbraunstein Offline
Junior Member
Posts: 6
Joined: Aug 2007
Reputation: 0
Post: #437
Heh, l that will do it. I reckon that is most likely my issue and it's not working for anyone. Weird coincidence?
find quote
corpgator Offline
Senior Member
Posts: 109
Joined: Oct 2012
Reputation: 0
Post: #438
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\GoogleMusicPl​aySong.py", line 16, in play
url = self.__getSongStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicPl​aySong.py", line 46, in __getSongStreamUrl
return self.api.getSongStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicAp​i.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\uti​ls\utils.py", line 228, in wrapper
return function(*args, **kw)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\gmusicapi\cli​ents\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\cli​ents\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\pro​tocol\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
(This post was last modified: 2014-03-03 07:06 by corpgator.)
find quote
nbraunstein Offline
Junior Member
Posts: 6
Joined: Aug 2007
Reputation: 0
Post: #439
Any word on an API update? I miss this app so much...
find quote
welshboy Offline
Junior Member
Posts: 8
Joined: Sep 2010
Reputation: 0
Post: #440
(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.
find quote
vojtishek Offline
Junior Member
Posts: 6
Joined: Dec 2013
Reputation: 0
Post: #441
I've installed the plugin yesterday as per mentioned process but can't find any content under categorizes and always receive empty search results.
find quote
foreverguest Offline
Member
Posts: 99
Joined: Oct 2012
Reputation: 4
Post: #442
For those having problems with recent Google changes, I have a new version with gmusicapi upgrade, please test:

Version 0.8exp21
find quote
corpgator Offline
Senior Member
Posts: 109
Joined: Oct 2012
Reputation: 0
Post: #443
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\GoogleMusicPl​aySong.py", line 16, in play
url = self.__getSongStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicPl​aySong.py", line 46, in __getSongStreamUrl
return self.api.getSongStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicAp​i.py", line 104, in getSongStreamUrl
stream_url = self.login.getStreamUrl(song_id)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\GoogleMusicLo​gin.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\uti​ls\utils.py", line 250, in wrapper
return function(*args, **kw)
File "C:\Users\XBMC\AppData\Roaming\XBMC\addons\plugin.audio.googlemusic\gmusicapi\cli​ents\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\cli​ents\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\pro​tocol\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.
(This post was last modified: 2014-03-12 04:51 by corpgator.)
find quote
foreverguest Offline
Member
Posts: 99
Joined: Oct 2012
Reputation: 4
Post: #444
Ok, second try:

Version 0.8exp22
find quote
TheWayne Offline
Junior Member
Posts: 1
Joined: Mar 2014
Reputation: 0
Music  RE: Google Music Addon
Post: #445
Cool All Access is working great, thanks for the work .
find quote
corpgator Offline
Senior Member
Posts: 109
Joined: Oct 2012
Reputation: 0
Post: #446
Thanks. Looks like it's working again..... until Google changes the API for the 50th time... bleh.
(This post was last modified: 2014-03-14 03:58 by corpgator.)
find quote
elementnz Offline
Junior Member
Posts: 1
Joined: Mar 2014
Reputation: 0
Post: #447
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?
(This post was last modified: 2014-03-14 11:45 by elementnz.)
find quote
vojtishek Offline
Junior Member
Posts: 6
Joined: Dec 2013
Reputation: 0
Post: #448
Great job, works like a charm.
Thanks a lot
find quote
nbraunstein Offline
Junior Member
Posts: 6
Joined: Aug 2007
Reputation: 0
Post: #449
Works like a charm again. You just made my evening. I have missed this.
find quote
wjbeckett Offline
Junior Member
Posts: 10
Joined: Aug 2012
Reputation: 0
Post: #450
EDIT: Resolved issue by forcing an update on the repo's and rebooting.
(This post was last modified: 2014-03-17 23:45 by wjbeckett.)
find quote
Post Reply