+
+ # Rename a playlist
+ def renamePlaylist(self, playlistid, name):
+ userid = self._get_login()
+ if (userid != 0):
+ newname = self._get_keyboard(default=name, heading="Grooveshark playlist name")
+ if newname == '':
+ return
+ elif groovesharkApi.playlistRename(playlistid, newname) == 0:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark XBMC', 'Cannot rename Grooveshark playlist ', name)
+ else:
+ # Refresh to show new item name
+ xbmc.executebuiltin("Container.Refresh")
+ else:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark XBMC', 'You must be logged in ', ' to rename a Grooveshark playlist.')
+
+ # Remove a playlist