+ def removePlaylistSong(self, playlistid, playlistname, songpos):
+ dialog = xbmcgui.Dialog()
+ if dialog.yesno('Grooveshark', 'Delete this song from the playlist?') == True:
+ userid = self._get_login()
+ if (userid != 0):
+ if groovesharkApi.playlistDeleteSong(playlistid, songpos) == 0:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark', 'Failed to remove ', ' song from playlist.')
+ else:
+ xbmc.executebuiltin("Container.Update(" + playlistUrl + "&id="+str(playlistid) + "&name=" + playlistname + ",replace)")
+ else:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark', 'You must be logged in ', ' to delete a song from a playlist.')
+