Kodi Community Forum
Release Experimental Google Music Addon - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Music Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=148)
---- Thread: Release Experimental Google Music Addon (/showthread.php?tid=200640)



RE: Experimental Google Music Addon - Abbaskip - 2020-03-06

I think foreverguest has unfortunatley abandoned this - however I get a playback error with the below log whenever I try to use 2.0beta2.

Code:
2020-03-06 21:11:14.113 T:492028  NOTICE: [PlayMusicEXP-2.0~beta2] getStreamUrl song id: ae521337-6408-31ac-ae0a-cb2d7008666e device:  quality: hi
2020-03-06 21:11:14.246 T:489668   DEBUG: JSONRPC: Value does not match any of the enum values in type
2020-03-06 21:11:14.246 T:489668   DEBUG: JSONRPC: Array element at index 6 does not match in type properties
2020-03-06 21:11:14.246 T:489668   DEBUG: script.module.metadatautils --> {"error":{"code":-32602,"data":{"method":"AudioLibrary.GetAlbums","stack":{"message":"array element at index 6 does not match","name":"Item.Fields.Base","property":{"message":"Received value does not match any of the defined enum values","type":"string"},"type":"array"}},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
2020-03-06 21:11:14.246 T:489668   DEBUG: script.module.metadatautils --> {'params': {'filter': {'and': [{'operator': 'contains', 'field': 'artist', 'value': u'A.P.J.'}, {'operator': 'contains', 'field': 'album', 'value': u'The Complete Motown Singles Vol.11A : 1971'}]}, 'properties': ['title', 'fanart', 'thumbnail', 'genre', 'displayartist', 'artist', 'genreid', 'musicbrainzalbumartistid', 'year', 'rating', 'artistid', 'musicbrainzalbumid', 'theme', 'description', 'type', 'style', 'playcount', 'albumlabel', 'mood', 'dateadded']}, 'jsonrpc': '2.0', 'method': 'AudioLibrary.GetAlbums', 'id': 1}
2020-03-06 21:11:14.382 T:492028   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&songid=ae521337-6408-31ac-ae0a-cb2d7008666e&pt=e&slt=1583489474131&tier=aa&sig=vBtHdbGOeBamiku571kFrFKazIc&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'songid': 'ae521337-6408-31ac-ae0a-cb2d7008666e', u'pt': u'e', u'slt': '1583489474131', 'tier': 'aa', u'sig': 'vBtHdbGOeBamiku571kFrFKazIc', '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&songid=ae521337-6408-31ac-ae0a-cb2d7008666e&pt=e&slt=1583489474131&tier=aa&sig=vBtHdbGOeBamiku571kFrFKazIc&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'songid': 'ae521337-6408-31ac-ae0a-cb2d7008666e', u'pt': u'e', u'slt': '1583489474131', 'tier': 'aa', u'sig': 'vBtHdbGOeBamiku571kFrFKazIc', '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<--
2020-03-06 21:11:14.390 T:492028   DEBUG: CPythonInvoker::onExecutionDone(92, C:\Users\Abba\AppData\Roaming\Kodi\addons\plugin.audio.googlemusic.exp\resources\lib\addon.py)
2020-03-06 21:11:14.398 T:492396   DEBUG: ------ Window Init (DialogNotification.xml) ------
2020-03-06 21:11:14.578 T:492028    INFO: Python interpreter stopped
2020-03-06 21:11:14.578 T:492028   DEBUG: Thread LanguageInvoker 492028 terminating
2020-03-06 21:11:14.578 T:492352   DEBUG: Thread scriptobs 492352 terminating
2020-03-06 21:11:14.579 T:492396   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
2020-03-06 21:11:14.579 T:492396   ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.googlemusic.exp/?action=play_song&song_id=ae521337-6408-31ac-ae0a-cb2d7008666e&title=+%28I%27ve+Given+You%29+The+Best+Years+Of+My+Life&artist=+A.P.J.+&albumart=http://lh3.googleusercontent.com/tTtb0Ndsn5eVDOXeMxF8fR4Uv_lWQBSrfGZv1izEwtGEVwWjddf41SWC0u6oGRRAWTj-KLA8zQ&tracknumber=5&album=The+Complete+Motown+Singles+Vol.11A+%3A+1971&year=2009&rating=0&artistart=http://lh3.googleusercontent.com/sbOF_S6Iz3ksjBsJFxFPGg_cWw8SpRuW5wHWllMvVSMmUk1WnAcrzQlpt2LHdzHQWhvUb_Jx6w]
2020-03-06 21:11:14.579 T:492396   DEBUG: Playlist Player: one or more items failed to play... aborting playback



RE: Experimental Google Music Addon - happycze - 2020-03-08

(2019-09-29, 16:07)0rphu Wrote: Hi mikerjr83,

not sure this also works for the beta (I think so), but to make the google play music exp plugin (1.12) work, do the following:

in file 
Code:
/storage/.kodi/addons/script.module.future/libs/past/translation/__init__.py
comment out lines 41 and 42:
Code:
#from lib2to3.pgen2.parse import ParseError
#from lib2to3.refactor import RefactoringTool

in file 
Code:
/storage/.kodi/addons/script.module.future/libs/libfuturize/fixes/__init__.py
comment out line 2:
Code:
#from lib2to3 import refactor

HTH
This definitely works! Thx

@foreverguest do you consider hotfix for this to 1.12?


RE: Experimental Google Music Addon - starslayer74 - 2020-05-12

With the news today that Google is going to officially pull the plug on Google Music, is there any work being done to migrate this over to Youtube Music? 

I don't want to use Youtube Music but it looks like I'm going to have to start soon. Sad


RE: Experimental Google Music Addon - starslayer74 - 2020-06-03

Aaand now it's completely broken.


RE: Experimental Google Music Addon - hinaman - 2020-06-04

(2020-06-03, 23:53)starslayer74 Wrote: Aaand now it's completely broken.

Same problem


RE: Experimental Google Music Addon - jmh2002 - 2020-06-04

It's working as normal for me. I'm playing my own library. I'm on Kodi 18.6 Leia.


RE: Experimental Google Music Addon - starslayer74 - 2020-06-04

(2020-06-04, 17:47)jmh2002 Wrote: It's working as normal for me. I'm playing my own library. I'm on Kodi 18.6 Leia.

I'll check mine again in a bit. Maybe there was a temporary issue. I did a fresh install on my test bed yesterday and it was not working.


RE: Experimental Google Music Addon - starslayer74 - 2020-06-06

Still having problems. 

Here is my log in hopes that someone can help troubleshoot: https://paste.kodi.tv/efojonufon


RE: Experimental Google Music Addon - rocko - 2020-06-07

What happened to the guy who started this addon.

I see he was online on the kodi forum as recently as today.


RE: Experimental Google Music Addon - foreverguest - 2020-06-08

(2020-06-07, 20:16)rocko Wrote: What happened to the guy who started this addon.

I see he was online on the kodi forum as recently as today.

Yeah, I'm here. I hear you. It's not working for me too. I looked to the logs to see if I could make a quick fix but haven't found a clue. As you notice I don't have much time to work on it but I'm willing to try a fix if I know how.


RE: Experimental Google Music Addon - jmh2002 - 2020-06-08

(2020-06-04, 17:47)jmh2002 Wrote: It's working as normal for me. I'm playing my own library. I'm on Kodi 18.6 Leia.

(2020-06-08, 02:51)foreverguest Wrote: Yeah, I'm here. I hear you. It's not working for me too. I looked to the logs to see if I could make a quick fix but haven't found a clue. As you notice I don't have much time to work on it but I'm willing to try a fix if I know how.

I can add some more information now. My above test was on one of my devices that runs LibreElec (still Kodi 18.6 leia though). I tested it again right now (after a reboot) and it still works and I can play songs from My Library.

BUT, I did the same test on another of my devices, that runs Windows 10, and that fails, with an on-screen (kodi) error message that says "Invalid Credentials or Connectivity Problems".

Is that the same error that you are seeing too?


RE: Experimental Google Music Addon - rocko - 2020-06-08

(2020-06-08, 02:51)foreverguest Wrote:
(2020-06-07, 20:16)rocko Wrote: What happened to the guy who started this addon.

I see he was online on the kodi forum as recently as today.

Yeah, I'm here. I hear you. It's not working for me too. I looked to the logs to see if I could make a quick fix but haven't found a clue. As you notice I don't have much time to work on it but I'm willing to try a fix if I know how.



RE: Experimental Google Music Addon - rocko - 2020-06-08

Just glad you are still working on this
(2020-06-08, 21:20)rocko Wrote: g to t




RE: Experimental Google Music Addon - starslayer74 - 2020-06-09

(2020-06-08, 08:32)jmh2002 Wrote:
(2020-06-04, 17:47)jmh2002 Wrote: It's working as normal for me. I'm playing my own library. I'm on Kodi 18.6 Leia.
 
(2020-06-08, 02:51)foreverguest Wrote: Yeah, I'm here. I hear you. It's not working for me too. I looked to the logs to see if I could make a quick fix but haven't found a clue. As you notice I don't have much time to work on it but I'm willing to try a fix if I know how.

I can add some more information now. My above test was on one of my devices that runs LibreElec (still Kodi 18.6 leia though). I tested it again right now (after a reboot) and it still works and I can play songs from My Library.

BUT, I did the same test on another of my devices, that runs Windows 10, and that fails, with an on-screen (kodi) error message that says "Invalid Credentials or Connectivity Problems".

Is that the same error that you are seeing too?
Thats the same error I'm getting - I tried on my main device (Nvidia Shield 2017, Running AndroidTV) and on my test bed (Windows 10) and got the same error on both. I created a new app password with Google and tried that just in case, and had the same issue on both devices. 

I have a feeling its something on the backend, Google is actively encouraging users to migrate to Youtube Music now, so it's only a matter of time until they shutter the service for real. I'm thinking they may have changed something to enable the migration tools to access the users content and that broke it.


RE: Experimental Google Music Addon - hinaman - 2020-06-14

(2020-06-09, 16:21)starslayer74 Wrote:
(2020-06-08, 08:32)jmh2002 Wrote:
(2020-06-04, 17:47)jmh2002 Wrote: It's working as normal for me. I'm playing my own library. I'm on Kodi 18.6 Leia.
 
(2020-06-08, 02:51)foreverguest Wrote: Yeah, I'm here. I hear you. It's not working for me too. I looked to the logs to see if I could make a quick fix but haven't found a clue. As you notice I don't have much time to work on it but I'm willing to try a fix if I know how.

I can add some more information now. My above test was on one of my devices that runs LibreElec (still Kodi 18.6 leia though). I tested it again right now (after a reboot) and it still works and I can play songs from My Library.

BUT, I did the same test on another of my devices, that runs Windows 10, and that fails, with an on-screen (kodi) error message that says "Invalid Credentials or Connectivity Problems".

Is that the same error that you are seeing too?
Thats the same error I'm getting - I tried on my main device (Nvidia Shield 2017, Running AndroidTV) and on my test bed (Windows 10) and got the same error on both. I created a new app password with Google and tried that just in case, and had the same issue on both devices. 

I have a feeling its something on the backend, Google is actively encouraging users to migrate to Youtube Music now, so it's only a matter of time until they shutter the service for real. I'm thinking they may have changed something to enable the migration tools to access the users content and that broke it.

The same error on 2 different devices, both Windows 10 that were working perfectly. Also tried an app password and had the same issue. Maybe Google are killing the API


This forum uses Lukasz Tkacz MyBB addons.