• 1
  • 20
  • 21
  • 22(current)
  • 23
  • 24
  • 35
WIP Google Music Addon
Wink 
(2013-11-30, 23:20)psanf Wrote:
(2013-11-20, 15:56)foreverguest Wrote: psanf, please remove folder '/home/xbian/.xbmc/addons/script.module.gmusicapi' and use package in link below.

dmbkiwi, please upgrade to version 0.8exp14: https://app.box.com/s/5u5601atbrnmf991ynp0

Don't forget to clean cache and cookies after upgrading.

Hi Foreverguest, and many thanks for your help.

Just done what you said, unfortunately the same error fired : http://pastebin.com/Ji0EcSMy

Even after a reboot.
(System: Linux xbian 3.9.8+ #2 PREEMPT Tue Jul 2 17:38:12 CEST 2013 armv6l GNU/Linux)

What did i missed?

Hey Smile

Many thanks to all, especially you Foreverguest.
Everything's now working perfectly !

Removed these previously installed directories in /home/xbian/.xbmc/addons :
rm -r script.module.gmusicapi
rm -r script.module.mutagen
rm -r plugin.audio.googlemusic

And uninstalled Google Play 0.8 directly from xbmc's interface.

Then installed from xbmc :
script.module.mutagen-1.21.0
script.module.gmusicapi-2013.02.28
plugin.audio.googlemusic-0.8exp14

And... that's all Big Grin
Hope this can help some people here.
Google Play Music All Access works like a charm on xbmc.
Note : two factor authentications works well too, with application's specific password.

Love you all. Thanks,
Pierre.
Hi,
Thanks vially and foreverguest (and the rest ofcourse) for the work performed. I'm really eager to get this to work, but am however stuck at the beginning with an ATV:
[GoogleMusic-0.8exp14] Trying to fetch the device_id -- it timeout for 4 minutes and than gives a generic error:
ERROR: GetDirectory - Error getting plugin://plugin.audio.googlemusic/
ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.googlemusic/) failed

(Mutagen and gmusicapi are installed first as mentioned in the previous post)

Now I've been able to use the google play app on my iPhone and saw a registration for that device in the settings screen of the webapp. Also a registration for my computer, but unfortunately no ATV in the list.

What am I missing here, it probably is very simple, but I'm not seeing it!

EDIT: maybe good to add, I do not have two factor authentication enabled (iPhone works fine without...)
OK, I was able to get one step further. I borrowed the device_id from my laptop, shown as device in the webapp (iPhone id did not work) and inserted that into settings.xml. I also started using two factor authentication, but I don't think that made the difference.

I now received a message 'loading library' on screen, but after four minutes I see an 'IncompleteRead' notice:
...
22:47:00 T:149950464 NOTICE: [GoogleMusic-0.8exp14] Loading library
22:47:00 T:149950464 NOTICE: [GoogleMusic-0.8exp14] Logging in
22:51:03 T:149950464 NOTICE: [GoogleMusic-0.8exp14] IncompleteRead(0 bytes read)
22:51:03 T:149950464 NOTICE: [GoogleMusic-0.8exp14] Login succeeded
...
(There are 240 tracks uploaded in google play, I can see those on my iPhone and the webapp)
Anyone able to help me out on this?
Hi All,

I got really excited about playing my google tunes through xbmc but sadly it always fails. I followed the steps and when that failed I removed the plugin from the XBMC interface and removed the three directories from /home/pi/.xbmc/addons, reinstalled from zips and rebooted. I still get the same error. From foreverguest's response to bdizzle, I checked and script.module.protobuf is sitting in the addons directory so... I'm stumped.

Any ideas as to what's causing this would be great. I would love to get this working for christmas!

I'm running Debian GNU/Linux 7.0 (wheezy) on a Raspberry Pi.

Thanks.

22:57:15 T:2881483840 NOTICE: -->Python Interpreter Initialized<--
22:57:15 T:2881483840 NOTICE: GoogleMusic-0.8.2 ARGV: ['plugin://plugin.audio.googlemusic/', '2', '']
22:57:25 T:2881483840 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: cannot import name descriptor_pb2
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/default.py", line 43, in <module>
import GoogleMusicApi
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/GoogleMusicApi.py", line 3, in <module>
from gmusicapi.api import Api
File "/home/pi/.xbmc/addons/script.module.gmusicapi/lib/gmusicapi/__init__.py", line 10, in <module>
from gmusicapi.api import Api
File "/home/pi/.xbmc/addons/script.module.gmusicapi/lib/gmusicapi/api.py", line 22, in <module>
from gmusicapi.protocol import webclient, musicmanager, upload_pb2, locker_pb2
File "/home/pi/.xbmc/addons/script.module.gmusicapi/lib/gmusicapi/protocol/musicmanager.py", line 16, in <module>
from gmusicapi.protocol import upload_pb2, locker_pb2
File "/home/pi/.xbmc/addons/script.module.gmusicapi/lib/gmusicapi/protocol/upload_pb2.py", line 6, in <module>
from google.protobuf import descriptor_pb2
ImportError: cannot import name descriptor_pb2
-->End of Python script error report<--
22:57:25 T:3041084032 ERROR: GetDirectory - Error getting plugin://plugin.audio.googlemusic/
22:57:25 T:3041084032 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.googlemusic/) failed
22:57:25 T:3041084032 WARNING: GetLabel - Unknown nodetype requested 0
22:57:25 T:2881483840 WARNING: Previous line repeats 1 times.
22:57:25 T:2881483840 NOTICE: Thread Background Loader start, auto delete: false
Hey, new geezer on the boards.

Great Add-On, got it working with minimal effort! Nice one.
It picks up my music collection which is great - however, i have an All Access account, so i can listen to stuff which isn't in my Library.
Can the Add-On do this? So, say i can search for Artists which aren't in my Library?

I can't see how, but thought i'd just check!
tried accessing again and this time it worked, without changing anything.

The only difference I can think of is my laptop, from I borrowed the device_id was not logged into google music. I tested this, but both devices are logged in now (laptop via music manager, still need to test laptop via webapp though).

Anyways, another step taken. I'm now unable to play items:

ERROR: Playlist Player: skipping unplayable item: 2, path [plugin://plugin.audio.googlemusic/?action=play_song&song_id=54a8c619-5adc-3153-ab7c-9c0104fdd634]

I have searched the thread and saw a couple more of these in user loggings, but no one with problems related to only this. So I will continue searching, help is ofcourse welcome!
For those trying my experimental 'All Access' package, have a good news, empty playlists should be fixed now (thanks Travis).

Grab latest version here: 0.8exp15

It has other fixes too. Let me know how it works for you.
So my error went away after I upgraded to xbmc 12 (I was using 11.) Now it seems to work pretty nicely. Some of my playlists were empty, but I'm going to install the new addon update tonight and see if that fixes it.

At somepoint it might be nice to tweak some of the navigation stuff, in particular I think the 'recently added to library' should be on the main menu, not just under the 'auto-playlists'. It would also be nice to have some of the browsing features of the web version - 'similar artists', a list of other albums by the artist, top singles from the artist, etc.

But I think this is a top notch add-on for a great app, I'm super excited to be able to use it now!
Hi - have tried 0.8exp15 but still get same issue. Can play my music OK but falls over on attempting to access All Access track. Log dump here http://pastebin.com/ZKSjL8W2

Apologies if I'm missing something. Thanks for doing this.
Woodzmeister, do you have a mobile device registered in your account? You shouldn't step in this error if you had one. It's needed to play all access tracks.
foreverguest - Thanks for the feedback. Looking at Google Music Settings I've got three ios mobile devices registered (which work) and two desktop devices (which have the Google MTM installed on them). I haven't installed Google MTM on my affected HTPC - so I'll give that a try and see if that fixes the issue. Will report back later.
Hmm, maybe an Android device is needed.
Can you check if you have similar lines in your log when starting the addon:
Code:
12:07:39 T:1328  NOTICE: [GoogleMusic-0.8exp15] Trying to fetch the device_id
12:07:41 T:1328  NOTICE: [GoogleMusic-0.8exp15] [{u'name': u'GalaxyY', u'carrier': u'Samsung', u'date': 1371244123383L, u'model': u'GT-S5360B', u'type': u'PHONE', u'id': u'0x3894....

I'm looking for one where type field is PHONE. How your ios devices show?
Tried installing Google MTM - no joy.

Mildly edited log output as follows:

Code:
14:44:54 T:4000  NOTICE: [GoogleMusic-0.8exp15] Trying to fetch the device_id
14:44:56 T:4000  NOTICE: [GoogleMusic-0.8exp15] [{u'date': 1381096381213L, u'type': u'DESKTOP_APP', u'id': u'00:16:0A:0B:EC:5C', u'name': u'woodz-1'}, {u'date': 1381085947049L, u'type': u'DESKTOP_APP', u'id': u'00:1A:4D:56:22:53', u'name': u'woodz-2'}, {u'date': 1386340863586L, u'type': u'DESKTOP_APP', u'id': u'D4:3D:7E:98:DE:FB', u'name': u'woodz-3'}, {u'date': 1384592621794L, u'type': u'IOS', u'id': u'ios:24d55d9ada184de5', u'name': u'iPhone1'}, {u'date': 1384799490005L, u'type': u'IOS', u'id': u'ios:5051af33114842bf', u'name': u"iPhone2"}, {u'date': 1384931545475L, u'type': u'IOS', u'id': u'ios:75f2b4bef91a4028', u'name': u'iPhone3'}]
14:44:56 T:4000  NOTICE: [GoogleMusic-0.8exp15] Loading auth from cache
Tongue 
So ios device type is IOS! Go figure.

Please try this version supporting IOS device type: 0.8exp16
foreverguest = genius! Now working. Thanks very much!
  • 1
  • 20
  • 21
  • 22(current)
  • 23
  • 24
  • 35

Logout Mark Read Team Forum Stats Members Help
Google Music Addon5