+
+ def frown(self, songid):
+ userid = self._get_login()
+ if (userid != 0):
+ xbmc.log("Frown playSong: " + str(songid))
+ if groovesharkApi.radioFrown(songId = songid) != True:
+ xbmc.log("Unable to frown song " + str(songid))
+ else:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark', 'You must be logged in', 'to frown a song.')
+
+ def similarSong(self, songid):
+ userid = self._get_login()
+ if (userid != 0):
+ xbmc.log("Frown playSong: " + str(songid))
+ if groovesharkApi.radioSong(songId = songid) and groovesharkApi.radioStartSongs() == True:
+ self.playRadio()
+ else:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark', 'Cannot start radio')
+ else:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark', 'You must be logged in', 'to update radio song.')
+
+ def similarArtist(self, artistId):
+ userid = self._get_login()
+ if (userid != 0):
+ xbmc.log("Add radio artist of playSong: " + str(artistId))
+ if groovesharkApi.radioArtist(artistId = artistId) and groovesharkApi.radioStartArtists() == True:
+ self.playRadio()
+ else:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark', 'Cannot start radio')
+ else:
+ dialog = xbmcgui.Dialog()
+ dialog.ok('Grooveshark', 'You must be logged in', 'to update radio artists.')