• 1
  • 2(current)
  • 3
  • 4
  • 5
  • 35
WIP Google Music Addon
#16
@claypigeon, @muertecaza

Thanks for the feedback. I've identified your problem and apparently it's happening for all the playlists which have more than 999 songs but it should be very easy to fix.
Unfortunately I'm a little busy these days but I'll try to release a new version which will fix your issues and a couple of others in the next couple of days.

In the meantime, if you identify some other problems than those already identified please let me know.

Cheers!
#17
(2012-06-28, 04:11)vially Wrote: @devanl

Yours seems to be totally unrelated from dallasnights' issue.
This seems to be a logic error in my code but unfortunately I can't manage to reproduce it locally. I might be able to identify the problem more easily if you could send me the log again after installing this version (which is really the same add-on but with more debugging enabled): https://github.com/vially/googlemusic-xb...2.1-devanl

Cheers!

Hopefully I did this right:
Code:
20:54:19 T:7796  NOTICE: -->Python Interpreter Initialized<--
20:54:19 T:7796  NOTICE: GoogleMusic-0.2.1 ARGV: ['plugin://plugin.audio.googlemusic/', '0', '']
20:54:19 T:7796  NOTICE: CommonFunctions-1.0.0
20:54:22 T:5740  NOTICE: -->Python Interpreter Initialized<--
20:54:22 T:5740  NOTICE: GoogleMusic-0.2.1 ARGV: ['plugin://plugin.audio.googlemusic/', '0', '?path=playlists&playlist_type=user']
20:54:22 T:5740  NOTICE: CommonFunctions-1.0.0
20:54:22 T:5740  NOTICE: [GoogleMusic-0.2.1] getPlaylists : 'Getting playlists of type: user'
20:54:22 T:5740  NOTICE: [GoogleMusic-0.2.1] getPlaylists : '[(u'2cf801de-f2e7-43b1-9be0-f77016e66992', u'Workout', u'user', 0)]'
20:54:23 T:1048  NOTICE: -->Python Interpreter Initialized<--
20:54:23 T:1048  NOTICE: GoogleMusic-0.2.1 ARGV: ['plugin://plugin.audio.googlemusic/', '0', '?path=playlist&playlist_id=2cf801de-f2e7-43b1-9be0-f77016e66992']
20:54:23 T:1048  NOTICE: CommonFunctions-1.0.0
20:54:23 T:1048  NOTICE: [GoogleMusic-0.2.1] listPlaylistSongs : 'Loading playlist: 2cf801de-f2e7-43b1-9be0-f77016e66992'
20:54:23 T:1048  NOTICE: [GoogleMusic-0.2.1] login : 'Loading cookie from file'
20:54:23 T:1048   ERROR: Error Type: <type 'exceptions.IOError'>
20:54:23 T:1048   ERROR: Error Contents: (2, 'No such file or directory', 'C:\\Users\\Administrator\\AppData\\Roaming\\XBMC\\addons\\vially-googlemusic-xbmc-49ee6e4\\gmusic_cookies.txt')
20:54:23 T:1048   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 45, in updatePlaylistSongs
                                                self.login.login()
                                              File "C:\Users\Administrator\AppData\Roaming\XBMC\addons\vially-googlemusic-xbmc-49ee6e4\GoogleMusicLogin.py", line 39, in login
                                                self.gmusicapi.session.cookies.load(filename=self._cookie_file, ignore_discard=True)
                                              File "C:\Program Files (x86)\XBMC\system\python\Lib\cookielib.py", line 1761, in load
                                                f = open(filename)
                                            IOError: (2, 'No such file or directory', 'C:\\Users\\Administrator\\AppData\\Roaming\\XBMC\\addons\\vially-googlemusic-xbmc-49ee6e4\\gmusic_cookies.txt')
20:54:23 T:11740   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.audio.googlemusic/?path=playlist&playlist_id=2cf801de-f2e7-43b1-9be0-f77016e66992
20:54:23 T:11740   ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.googlemusic/?path=playlist&playlist_id=2cf801de-f2e7-43b1-9be0-f77016e66992) failed
20:54:23 T:8196  NOTICE: -->Python Interpreter Initialized<--
20:54:23 T:8196  NOTICE: GoogleMusic-0.2.1 ARGV: ['plugin://plugin.audio.googlemusic/', '0', '?path=playlists&playlist_type=user']
20:54:23 T:8196  NOTICE: CommonFunctions-1.0.0
20:54:23 T:8196  NOTICE: [GoogleMusic-0.2.1] getPlaylists : 'Getting playlists of type: user'
20:54:23 T:8196  NOTICE: [GoogleMusic-0.2.1] getPlaylists : '[(u'2cf801de-f2e7-43b1-9be0-f77016e66992', u'Workout', u'user', 0)]'

Thanks,
Devan
#18
It looks like I am having a different issues - I even tried a clean install of xbmc and got the same error

http://pastebin.com/e5S4Emqk

Great work on this so far, I know that a lot of people are looking forward to it!
#19
@thornside

Your issue is the one about setuptools which is documented on the project page. Please use the fix specified there: https://github.com/vially/googlemusic-xbmc#setuptools

Cheers!
#20
(2012-06-30, 23:50)vially Wrote: @thornside

Your issue is the one about setuptools which is documented on the project page. Please use the fix specified there: https://github.com/vially/googlemusic-xbmc#setuptools

Cheers!

Ugh, I assumed that fix was for ATV - should have tried that first.

Works great, this is a great add on!
#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!
#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?
#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
#24
Every time I try to open the icon I get the message "script failed".
Help please!
#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
#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
#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 missingHuh

1. try update your xbmc
2. install google music plugin from zip file
3. do the changes like vially said

#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
#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 (Confusedong_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
#30
will this get fixed at some point or is this dead now.Huh

i would really appreciate it working.
  • 1
  • 2(current)
  • 3
  • 4
  • 5
  • 35

Logout Mark Read Team Forum Stats Members Help
Google Music Addon5