I have trouble with both the latest version (0.3) and 0.2... It seems the only thing that works is the playlist view. All songs and albums give the following error. Perhaps the gmusicapi package is outdated? The gmusicapi.log is also giving validation errors.
Btw, I'd be happy to work on this since I know python. Not too much time right now, but maybe over Christmas. Is there anything in particular that I should look at working on? One big thing for me is the buffering time between songs. It should start buffering the next song before the last one finishes, if possible.
Code:
21:00:55 T:2808767552 NOTICE: -->Python Interpreter Initialized<--
21:00:55 T:2808767552 NOTICE: GoogleMusic-0.2.1
21:00:59 T:2808767552 NOTICE: CommonFunctions-1.3.0
21:01:11 T:2808767552 ERROR: 2012-12-01 21:01:11,736 - gmusicapi.Api - WARNING - Received an unexpected response from call loadalltracks.
21:01:11 T:2808767552 NOTICE: .
21:01:13 T:2808767552 ERROR: 2012-12-01 21:01:13,074 - gmusicapi.Api - WARNING - error was: Failed to validate field 'playlist' list schema: additional properties not defined by 'properties' are not allowed in list item
21:01:13 T:2808767552 NOTICE: .
21:01:16 T:2808767552 ERROR: 2012-12-01 21:01:16,404 - gmusicapi.Api - WARNING - Received an unexpected response from call loadalltracks.
21:01:16 T:2808767552 NOTICE: .
21:01:17 T:2808767552 ERROR: 2012-12-01 21:01:17,284 - gmusicapi.Api - WARNING - error was: Failed to validate field 'playlist' list schema: additional properties not defined by 'properties' are not allowed in list item
21:01:17 T:2808767552 NOTICE: .
21:01:17 T:2808767552 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('year',)
Traceback (most recent call last):
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/default.py", line 41, in <module>
navigation.listMenu(params)
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/GoogleMusicNavigation.py", line 44, in listMenu
self.listPlaylistSongs(get("playlist_id"))
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/GoogleMusicNavigation.py", line 110, in listPlaylistSongs
songs = self.api.getPlaylistSongs(playlist_id)
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/GoogleMusicApi.py", line 22, in getPlaylistSongs
self.updatePlaylistSongs(playlist_id)
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/GoogleMusicApi.py", line 51, in updatePlaylistSongs
self.storage.storeApiSongs(api_songs, playlist_id)
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/GoogleMusicStorage.py", line 102, in storeApiSongs
self.curs.executemany("INSERT OR REPLACE 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)", songs())
File "/home/pi/.xbmc/addons/plugin.audio.googlemusic/GoogleMusicStorage.py", line 82, in songs
'year': api_song["year"],
KeyError: ('year',)
-->End of Python script error report<--
21:01:18 T:3041723008 ERROR: GetDirectory - Error getting plugin://plugin.audio.googlemusic/?path=playlist&playlist_id=all_songs
21:01:18 T:3041723008 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.audio.googlemusic/?path=playlist&playlist_id=all_songs) failed
21:01:18 T:2808767552 NOTICE: Thread Background Loader start, auto delete: false
21:01:20 T:2808767552 NOTICE: Thread XBPyThread start, auto delete: false