[WIP] Google Music Addon

  Thread Rating:
  • 3 Votes - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
vially Offline
Junior Member
Posts: 29
Joined: May 2012
Reputation: 3
Post: #21
@thornside

I'm glad it works for you. Just keep in mind that the next time you start the add-on you might get hit by the second known issue (the one about expired cookies) but that one is easier to solve.

Cheers!
find quote
legars Offline
Junior Member
Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #22
Thank you for the addon. Unfortunately it doesn't work on my apple tv 2 with xbmc installed. Every time I try to open the icon I get the message "script failed". If there is any solution?
find quote
billyvnilly Offline
Junior Member
Posts: 19
Joined: Dec 2011
Reputation: 0
Post: #23
I'm on Openelec as well, can't get addon to work either (script error) have already done what you suggested with init file

http://pastebin.com/6P0zDK2w
find quote
legars Offline
Junior Member
Posts: 2
Joined: Jul 2012
Reputation: 0
Post: #24
Every time I try to open the icon I get the message "script failed".
Help please!
find quote
djtulan Offline
Junior Member
Posts: 8
Joined: Feb 2012
Reputation: 0
Post: #25
Great Work vially!!!! Laugh Laugh Laugh

I'm running it on ATV2 with the changes you told us.

1. Installing the ZIP File

2. addons/script.module.protobuf/lib/google/__init__.py
see: https://github.com/vially/googlemusic-xbmc#known-issues

3. addons/script.module.gmusicapi/lib/gmusicapi/utils/apilogging.py
see: http://pastebin.com/diff.php?i=gX8J9JvE

But it has really big troubles with bigger Songlists Wink
I have my complete Music Library online with consists of several tausend files (>14.0000)

After a while this logging came:
21:19:06 T:804945920 DEBUG: Thread Background Loader 804945920 terminating
21:19:06 T:114548736 DEBUG: RetrieveMusicInfo() took 93012 msec

What would be really cool would be a Iconview for all the albums Nod
I don't know if Simons unofficial API supports that such functions, if it would, it shouldn't be a big thing to changes that.

all the best,
Rob
find quote
dallasnights Offline
Fan
Posts: 515
Joined: Jan 2011
Reputation: 0
Post: #26
Ok since you got ATV2 working maybe you can help me get it to work on ATV2

Here is the log, thanks all

http://pastebin.com/C0nUWAES
find quote
djtulan Offline
Junior Member
Posts: 8
Joined: Feb 2012
Reputation: 0
Post: #27
Did you try to clear the cookie und database data? In Plugin Settings "Advanced" there are still troubles with the session cookie.
It seems that you didn't install you plugin from the zip file, right?

Code:
/var/mobile/Library/Preferences/XBMC/addons/vially-googlemusic-xbmc-49ee6e4/GoogleMusicApi.py
the plugin path doesn't look like mine.

Is you XBMC up to date?
I updated my ATV2 XBMX last week.
-> login via "ssh root@xbmcIP"

> apt-get update
> apt-get ugrade

Maybe some needed libs are missingConfused

1. try update your xbmc
2. install google music plugin from zip file
3. do the changes like vially said
(This post was last modified: 2012-07-14 11:59 by djtulan.)
find quote
dallasnights Offline
Fan
Posts: 515
Joined: Jan 2011
Reputation: 0
Post: #28
ok did a fresh install, i am on the latested XBMC
Still can not get to work on ATV2

Here is the new log hope you can help

http://pastebin.com/afvBHFpA

PS
Maybe sharing your modifications I can just use might help
find quote
devanl Offline
Junior Member
Posts: 46
Joined: Feb 2008
Reputation: 0
Post: #29
Hi Vially,
I know you're a busy guy but I was just curious if I was able to capture what you were after? It didn't think the logs looked very different.
Looks like its missing gmusic_cookies.txt from what I can tell. I tried creating the file to see if it was a folder permissions thing but it doesn't seem to like empty files.
Is there a way to force this to be generated?

*EDIT*

So I forced the code to login every time without using cookies and got a little further. Looks like I've got a parser problem now...
Quote:17:36:10 T:11904 NOTICE: -->Python Interpreter Initialized<--
17:36:10 T:11904 NOTICE: GoogleMusic-0.2.1 ARGV: ['plugin://plugin.audio.googlemusic/', '0', '?path=playlist&playlist_id=2cf801de-f2e7-43b1-9be0-f77016e66992']
17:36:10 T:11904 NOTICE: CommonFunctions-1.0.0
17:36:11 T:11904 NOTICE: [GoogleMusic-0.2.1] listPlaylistSongs : 'Loading playlist: 2cf801de-f2e7-43b1-9be0-f77016e66992'
17:36:11 T:11904 NOTICE: [GoogleMusic-0.2.1] login : 'Logging in'
17:36:16 T:11904 NOTICE: [GoogleMusic-0.2.1] login : 'Login succeeded'
17:36:17 T:11904 ERROR: 2012-07-15 17:36:17,382 - gmusicapi.Api - WARNING - Received an unexpected response from call loadplaylist.
17:36:17 T:11904 NOTICE: .
17:36:17 T:11904 ERROR: 2012-07-15 17:36:17,388 - gmusicapi.Api - WARNING - error was: Failed to validate field 'playlist' list schema: additional properties not defined by 'properties' are not allowed in list item
17:36:17 T:11904 NOTICE: .
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 77d9db88-04c2-3528-9c1a-84aaad007636'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 5d615708-46da-3913-b78f-fa82062e5895'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: adc69be5-d584-34c4-b496-6f4517d63b84'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 01732458-e0da-39ed-a21d-59af6cd3993b'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 788049ae-c2c6-3598-9b8d-57f09d6c9c8b'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 88d415bd-35b0-3bb0-9d5c-228579fdf089'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 66bb1d4a-b365-3a13-9cf7-f4a933d2a79e'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 9be06848-ae04-3f0e-9d54-eb076a93ec43'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: df01b54b-b9e6-3818-b35d-857caaa1a729'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 01732458-e0da-39ed-a21d-59af6cd3993b'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 51ee3c68-5a68-324a-a453-bcecfb338b0e'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: cdd80462-4dd9-3ce5-9c63-6ac3b7129f9c'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 3ef3794b-f856-3f3d-928d-053610af35aa'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: df188d2f-b1a4-321c-b58f-c03c9a8f55ad'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: fb356846-5350-307e-a7dd-668413866327'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: a69f3536-9fe6-3622-a39a-0d3c3ba97bdf'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 54a84e73-7615-39c6-8479-c2ef694f6aea'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 76838384-f2f9-39e8-b82c-530196fae3df'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 696c49f2-4bdb-349b-9b2a-fccdfddc9b95'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: d5d0eb5d-c9d5-3a11-918b-3131641832bb'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 5dc10f8e-4e02-3a98-9cc9-8c45b358053e'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: c5096c25-36c2-310e-800d-38fd728a90e1'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 1cb9327a-04cd-38ed-8b49-6922249dced1'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 9e489be9-f0b4-369d-a9bb-9bdc938168da'
17:36:17 T:11904 NOTICE: [GoogleMusic-0.2.1] storeApiSongs : 'new_song: 9d13f2a2-c031-39da-98ce-6ac1790139a3'
17:36:17 T:11904 ERROR: Error Type: <class 'sqlite3.IntegrityError'>
17:36:17 T:11904 ERROR: Error Contents: column song_id is not unique
17:36:17 T:11904 ERROR: Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\vially-googlemusic-xbmc-49ee6e4\default.py", line 45, in <module>
navigation.listMenu(params)
File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\vially-googlemusic-xbmc-49ee6e4\GoogleMusicNavigation.py", line 42, in listMenu
self.listPlaylistSongs(get("playlist_id"))
File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\vially-googlemusic-xbmc-49ee6e4\GoogleMusicNavigation.py", line 101, in listPlaylistSongs
songs = self.api.getPlaylistSongs(playlist_id)
File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\vially-googlemusic-xbmc-49ee6e4\GoogleMusicApi.py", line 22, in getPlaylistSongs
self.updatePlaylistSongs(playlist_id)
File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\vially-googlemusic-xbmc-49ee6e4\GoogleMusicApi.py", line 51, in updatePlaylistSongs
self.storage.storeApiSongs(api_songs, playlist_id)
File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\vially-googlemusic-xbmc-49ee6e4\GoogleMusicStorage.py", line 88, in storeApiSongs
self.curs.executemany("INSERT INTO songs VALUES (:song_id, :comment, :rating, :last_played, :disc, :composer, :year, :album, :title, :album_artist, :type, :track, :total_tracks, :beats_per_minute, :genre, :play_count, :creation_date, :name, :artist, :url, :total_discs, :duration_millis, :album_art_url, :display_name, NULL)", new_songs)
IntegrityError: column song_id is not unique
17:36:17 T:12192 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.googlemusic/?path=playlist&playlist_id=2cf801de-f2e7-43b1-9be0-f77016e66992
17:36:17 T:12192 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.googlemusic/?path=playlist&playlist_id=2cf801de-f2e7-43b1-9be0-f77016e66992) failed
17:36:17 T:3564 NOTICE: -->Python Interpreter Initialized<--
17:36:17 T:3564 NOTICE: GoogleMusic-0.2.1 ARGV: ['plugin://plugin.audio.googlemusic/', '0', '?path=playlists&playlist_type=user']
17:36:17 T:3564 NOTICE: CommonFunctions-1.0.0
17:36:18 T:3564 NOTICE: [GoogleMusic-0.2.1] getPlaylists : 'Getting playlists of type: user'
17:36:18 T:3564 NOTICE: [GoogleMusic-0.2.1] getPlaylists : '[(u'2cf801de-f2e7-43b1-9be0-f77016e66992', u'Workout', u'user', 0)]'

Thanks,
Devan
(This post was last modified: 2012-07-15 23:40 by devanl.)
find quote
leezy Offline
Junior Member
Posts: 39
Joined: Dec 2011
Reputation: 0
Post: #30
will this get fixed at some point or is this dead now.Confused

i would really appreciate it working.
find quote
Post Reply