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 - corpgator - 2016-05-26

I was on 1.5.1 with no issues when it suddenly deleted half of the items off my playlists. I tried clearing cache and cookie but no joy, so I installed latest, it wouldn't work at all, uninstalled and now it just sits at buffering for a long time using a ton of CPU on all screens, as thought it is reloading my entire library every single time I open anything. My regular library is there but now playlists are gone entirely. Debug log shows nothing except calls to google api and successful returns..


RE: Experimental Google Music Addon - dmxcasper2 - 2016-05-26

I just installed the latest version of your addon today and I've tested it it on (3) separate devices (1 mobile phone on mobile network and 2 machines on the the same WIFI network). The 2 local machines are Amazon TV and my PC. The addon works great on my local PC with no issues. However on the Amazon TV, it installs with no issues and it pulls all of the information from my Google Music account as it should, but when I attempt to play a file it gives the following error message "One or more items failed to play. Check the log for more information."

Here is my debug log.
http://xbmclogs.com/pdqw3mjvo

I've tried to search for any strings that might identify the issue but to no avail. I could use the help.

This is what I've did in trying to resolve the issue:
1. cleared my kodi cache.
2. uninstalled the addon + repository
3. re-installed it
4. checked my google account to see if I was over the 10 device limit. (I only have 6 registered)

P.S.
Great work on this!!! Mad props for an easy to use and clean plugin like this.


RE: Experimental Google Music Addon - foreverguest - 2016-05-27

(2016-05-26, 03:35)dmxcasper2 Wrote: I just installed the latest version of your addon today and I've tested it it on (3) separate devices (1 mobile phone on mobile network and 2 machines on the the same WIFI network). The 2 local machines are Amazon TV and my PC. The addon works great on my local PC with no issues. However on the Amazon TV, it installs with no issues and it pulls all of the information from my Google Music account as it should, but when I attempt to play a file it gives the following error message "One or more items failed to play. Check the log for more information."

Here is my debug log.
http://xbmclogs.com/pdqw3mjvo

I've tried to search for any strings that might identify the issue but to no avail. I could use the help.

This is what I've did in trying to resolve the issue:
1. cleared my kodi cache.
2. uninstalled the addon + repository
3. re-installed it
4. checked my google account to see if I was over the 10 device limit. (I only have 6 registered)

P.S.
Great work on this!!! Mad props for an easy to use and clean plugin like this.

The requests module 'script.module.requests' is failing to load Unicode codec, other users had this error. Try to reinstall this module or maybe some Unicode option is missing in your platform.


RE: Experimental Google Music Addon - gshodg - 2016-05-28

Any idea why when playing a Google station (doing the steps Browse Stations>Activities>Pick One) there's no "NEXT TRACKS" showing at the bottom right See below.

Image

But if you access the same from a mobile phone you can see that it's a playlist of upcoming songs.

I thought it might look like this, with NEXT TRACKS in the bottom right (this screenshot was from playing an album, not a station)...

Image


RE: Experimental Google Music Addon - surfbug - 2016-05-29

(2016-05-25, 19:55)foreverguest Wrote: The error is related to the requests module 'script.module.requests' try to reinstall it.

thanks for the reply, I tried to reinstall the module, but still no luck. I ended up reinstalling the whole system, recovered from a backup and everything is back to what it should be.

Thanks!


RE: Experimental Google Music Addon - cicero22 - 2016-05-30

(2016-05-28, 10:02)gshodg Wrote: Any idea why when playing a Google station (doing the steps Browse Stations>Activities>Pick One) there's no "NEXT TRACKS" showing at the bottom right See below.

Image

But if you access the same from a mobile phone you can see that it's a playlist of upcoming songs.

I thought it might look like this, with NEXT TRACKS in the bottom right (this screenshot was from playing an album, not a station)...

Image

<OT>
@gshodg: Just out of curiosity, which skin do you use? Your footer says Xonfluence, but I think the screenshots show another one, correct?
</OT>


RE: Experimental Google Music Addon - dexdeadly - 2016-06-06

Hello I'm currently trying to share from my Google Music app to the plugin via Yatse, I know this worked before but now when I do it this is the error I'm getting. Any help would be greatly appreciated.

Code:
00:45:02 20274.761719 T:916927392  NOTICE: [GoogleMusicEXP-1.9.2]  ARGV: ['plugin://plugin.audio.googlemusic.exp/', '1', '?action=play_song&song_id=Trruybaebjljyt6vt72c2bu5spu?t=Another_Way_Out_-_Hollywood_Undead']
00:45:03 20275.558594 T:916927392  NOTICE: [GoogleMusicEXP-1.9.2] Loading auth from cache
00:45:03 20275.878906 T:916927392   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: GetStoreTrack: 400 Client Error: Bad Request for url: https://mclients.googleapis.com/sj/v2.4/fetchtrack?alt=json&hl=en_US&nid=Trruybaebjljyt6vt72c2bu5spu%3Ft
                                            (requests kwargs: {'url': 'https://mclients.googleapis.com/sj/v2.4/fetchtrack', 'headers': {'Content-Type': 'application/json', 'Authorization': '<omitted>'}, 'params': {'alt': 'json', 'hl': 'en_US', 'nid': 'Trruybaebjljyt6vt72c2bu5spu?t'}, 'method': 'GET'})
                                            (response was: u'{\n "error": {\n  "errors": [\n   {\n    "domain": "global",\n    "reason": "badRequest",\n    "message": "Bad Request"\n   }\n  ],\n  "code": 400,\n  "message": "Bad Request"\n }\n}\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 46, in __getSongStreamUrl
                                                song = self.api.getTrack(song_id)
                                              File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/GoogleMusicApi.py", line 145, in getTrack
                                                return self._convertStoreTrack(self.getApi().get_track_info(trackid))
                                              File "<string>", line 2, in get_track_info
                                              File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/utils/utils.py", line 291, in wrapper
                                                return function(*args, **kw)
                                              File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/clients/mobileclient.py", line 1277, in get_track_info
                                                return self._make_call(mobileclient.GetStoreTrack, store_track_id)
                                              File "/storage/.kodi/addons/plugin.audio.googlemusic.exp/gmusicapi/clients/shared.py", line 81, 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 225, in perform
                                                raise CallFailure(err_msg, call_name)
                                            CallFailure: GetStoreTrack: 400 Client Error: Bad Request for url: https://mclients.googleapis.com/sj/v2.4/fetchtrack?alt=json&hl=en_US&nid=Trruybaebjljyt6vt72c2bu5spu%3Ft
                                            (requests kwargs: {'url': 'https://mclients.googleapis.com/sj/v2.4/fetchtrack', 'headers': {'Content-Type': 'application/json', 'Authorization': '<omitted>'}, 'params': {'alt': 'json', 'hl': 'en_US', 'nid': 'Trruybaebjljyt6vt72c2bu5spu?t'}, 'method': 'GET'})
                                            (response was: u'{\n "error": {\n  "errors": [\n   {\n    "domain": "global",\n    "reason": "badRequest",\n    "message": "Bad Request"\n   }\n  ],\n  "code": 400,\n  "message": "Bad Request"\n }\n}\n')
                                            -->End of Python script error report<--

Current Setup:
Raspberry Pi 3
OpenELEC with Jarvis
Plugin Version 1.9.2

I can use it manually through Kodi no problem but would love to be able to share from phone any playlist, album, song. I know we got this to work before when I was able to get the Yatse programmer to send the info but if this is incorrect now I'd be happy to reach back out Smile Thanks for the amazing plugin. [/quote]


RE: Experimental Google Music Addon - foreverguest - 2016-06-07

This error is related to a change in the Google Api, the call to fetch the track info seems to be failing only for non-subscribers.
I do more tests and try to find an alternative, thanks for reporting.


RE: Experimental Google Music Addon - dexdeadly - 2016-06-07

so wait I'm sorry I am an unlimited subscriber, does this mean I am missing something?


RE: Experimental Google Music Addon - gshodg - 2016-06-07

(2016-05-30, 11:31)cicero22 Wrote:
(2016-05-28, 10:02)gshodg Wrote: Any idea why when playing a Google station (doing the steps Browse Stations>Activities>Pick One) there's no "NEXT TRACKS" showing at the bottom right See below.

Image

But if you access the same from a mobile phone you can see that it's a playlist of upcoming songs.

I thought it might look like this, with NEXT TRACKS in the bottom right (this screenshot was from playing an album, not a station)...

Image

<OT>
@gshodg: Just out of curiosity, which skin do you use? Your footer says Xonfluence, but I think the screenshots show another one, correct?
</OT>

You're right, this is Estuary skin, which I use on a laptop (Mac OSX) playing with v17 nightlies (the other skin is on my main TV). Sorry for the confusion, signature has been updated.

Would it be possible to add 'Next Tracks" list for playlists? Thanks.


RE: Experimental Google Music Addon - foreverguest - 2016-06-09

Quote:Would it be possible to add 'Next Tracks" list for playlists? Thanks.

I think this is a bug in Kodi.
When I start playing one song and the option 'Play next song automatically' in Kodi settings is enabled, Kodi shows 'Next Tracks' but when I return a playlist already populated with various songs, it doesn't.
So, the list of songs is available for showing but Kodi ignores it.


RE: Experimental Google Music Addon - foreverguest - 2016-06-09

(2016-06-07, 04:12)dexdeadly Wrote: so wait I'm sorry I am an unlimited subscriber, does this mean I am missing something?

Ok, I missed something, it shouldn't fail in any case.
If it works manually on the same machine it should work calling from Yatse.


RE: Experimental Google Music Addon - dexdeadly - 2016-06-12

This is why I was getting a bit confused. Anything I can check to see what is not working.


RE: Experimental Google Music Addon - dmxcasper2 - 2016-06-13

(2014-12-13, 00:40)marqc Wrote: plugin stopped playing songs. browsing library works fine.
using xbmc 13.2 gotham on linux fedora 20

my log
Quote:23:31:46 T:140553073194752 NOTICE: [GoogleMusicEXP-1.2] Loading library
23:31:46 T:140553073194752 NOTICE: [GoogleMusicEXP-1.2] Loading auth from cache
23:31:48 T:140553073194752 NOTICE: [GoogleMusicEXP-1.2] Library Size: 3470
23:31:51 T:140553022838528 NOTICE: Thread BackgroundLoader start, auto delete: false
23:31:53 T:140553073194752 NOTICE: Thread LanguageInvoker start, auto delete: false
23:31:53 T:140553073194752 NOTICE: -->Python Interpreter Initialized<--
23:31:53 T:140553073194752 NOTICE: GoogleMusicEXP-1.2 ARGV: ['plugin://plugin.audio.googlemusic.exp/', '17', '?path=playlists&playlist_type=user']
23:31:53 T:140553022838528 NOTICE: Thread BackgroundLoader start, auto delete: false
23:31:54 T:140553073194752 NOTICE: Thread LanguageInvoker start, auto delete: false
23:31:54 T:140553073194752 NOTICE: -->Python Interpreter Initialized<--
23:31:54 T:140553073194752 NOTICE: GoogleMusicEXP-1.2 ARGV: ['plugin://plugin.audio.googlemusic.exp/', '18', '?path=playlist&playlist_id=27c4badb-1577-472c-82b5-a73514970d79']
23:31:54 T:140553073194752 NOTICE: [GoogleMusicEXP-1.2] Loading playlist: 27c4badb-1577-472c-82b5-a73514970d79
23:31:54 T:140553022838528 NOTICE: Thread BackgroundLoader start, auto delete: false
23:31:57 T:140553022838528 NOTICE: Thread LanguageInvoker start, auto delete: false
23:31:57 T:140553022838528 NOTICE: -->Python Interpreter Initialized<--
23:31:57 T:140553022838528 NOTICE: GoogleMusicEXP-1.2 ARGV: ['plugin://plugin.audio.googlemusic.exp/', '19', '?action=play_song&song_id=Ttpi4s6gpct35drqc6plps3yhu4&title=Come With Me Now&artist=Kongos']
23:31:57 T:140553022838528 NOTICE: [GoogleMusicEXP-1.2] Prefetch disabled or URL invalid or expired :
23:31:57 T:140553022838528 NOTICE: [GoogleMusicEXP-1.2] Loading auth from cache
23:31:57 T:140553022838528 NOTICE: [GoogleMusicEXP-1.2] getStreamUrl songid: Ttpi4s6gpct35drqc6plps3yhu4 device: 33efb833be593797
23:31:57 T:140553022838528 NOTICE: [GoogleMusicEXP-1.2] getStreamUrl quality: hi
23:31:57 T:140553022838528 ERROR: /home/marq/.xbmc/addons/script.module.requests/lib/requests/packages/urllib3/connectionpool.py:730: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html (This warning will only appear once by default.)
InsecureRequestWarning)
23:31:58 T:140553941415680 NOTICE: Thread JobWorker start, auto delete: true
23:31:58 T:140553022838528 NOTICE: Previous line repeats 1 times.
23:31:58 T:140553022838528 NOTICE: [GoogleMusicEXP-1.2] URL :: 'https://r6---sn-8xjug5oxu-3ufe.c.doc-0-0-sj.sj.googleusercontent.com/videoplayback?id=4c050f3abb8b7eb9&itag=25&source=skyjam&begin=0&upn=65xGYLpnocQ&o=15464180252805041548&ratebypass=yes&ip=37.8.235.132&ipbits=0&expire=1418423535&sparams=expire,id,ip,ipbits,itag,mm,ms,mv,o,ratebypass,source,upn&signature=165825D5A4EED15D5CFB45CE2B2D739BED80498C.1841CC041CC6B9C5121C35E8B007C5DD67EDC4A4&key=cms1&mm=31&ms=au&mt=1418423386&mv=m'
23:32:00 T:140553022838528 NOTICE: [GoogleMusicEXP-1.2] Loading auth from cache
23:32:08 T:140554857822720 ERROR: CCurlFile::FillBuffer - Failed: Timeout was reached(28)
23:32:08 T:140554857822720 ERROR: CCurlFile::CReadState::Connect, didn't get any data from stream.
23:32:08 T:140554857822720 ERROR: Open - failed to open source <https://r6---sn-8xjug5oxu-3ufe.c.doc-0-0-sj.sj.googleusercontent.com/videoplayback?id=4c050f3abb8b7eb9&itag=25&source=skyjam&begin=0&upn=65xGYLpnocQ&o=15464180252805041548&ratebypass=yes&ip=37.8.235.132&ipbits=0&expire=1418423535&sparams=expire,id,ip,ipbits,itag,mm,ms,mv,o,ratebypass,source,upn&signature=165825D5A4EED15D5CFB45CE2B2D739BED80498C.1841CC041CC6B9C5121C35E8B007C5DD67EDC4A4&key=cms1&mm=31&ms=au&mt=1418423386&mv=m>
23:32:08 T:140554857822720 ERROR: MP3Codec: Unable to open file https://r6---sn-8xjug5oxu-3ufe.c.doc-0-0-sj.sj.googleusercontent.com/videoplayback?id=4c050f3abb8b7eb9&itag=25&source=skyjam&begin=0&upn=65xGYLpnocQ&o=15464180252805041548&ratebypass=yes&ip=37.8.235.132&ipbits=0&expire=1418423535&sparams=expire,id,ip,ipbits,itag,mm,ms,mv,o,ratebypass,source,upn&signature=165825D5A4EED15D5CFB45CE2B2D739BED80498C.1841CC041CC6B9C5121C35E8B007C5DD67EDC4A4&key=cms1&mm=31&ms=au&mt=1418423386&mv=m
23:32:08 T:140554857822720 ERROR: CAudioDecoder: Unable to Init Codec while loading file https://r6---sn-8xjug5oxu-3ufe.c.doc-0-0-sj.sj.googleusercontent.com/videoplayback?id=4c050f3abb8b7eb9&itag=25&source=skyjam&begin=0&upn=65xGYLpnocQ&o=15464180252805041548&ratebypass=yes&ip=37.8.235.132&ipbits=0&expire=1418423535&sparams=expire,id,ip,ipbits,itag,mm,ms,mv,o,ratebypass,source,upn&signature=165825D5A4EED15D5CFB45CE2B2D739BED80498C.1841CC041CC6B9C5121C35E8B007C5DD67EDC4A4&key=cms1&mm=31&ms=au&mt=1418423386&mv=m
23:32:08 T:140554857822720 WARNING: PAPlayer::QueueNextFileEx - Failed to create the decoder
23:32:08 T:140554857822720 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.audio.googlemusic.exp/?action=play_song&song_id=Ttpi4s6gpct35drqc6plps3yhu4&title=Come With Me Now&artist=Kongos]


EDIT: found it's not plugin related but general xbmc streaming issue with latest curl releases.
I downgraded curl libs ans everything works again.

Hey marq

Looks like im having the aame issue as you. Would you be willing to walk through on how you downgraded curl libs?


RE: Experimental Google Music Addon - dexdeadly - 2016-06-14

Hey ForeverGuest. I just talked to the programmer of the API in there freenode chat. It looks like the issue is due to when Yatse is sending the plugin url the ?t should not be there and that its causing the %3Ft to be within the URL and it should not. Unless this is something that you can do within your code to remove the ? and after.