return False
result = self.callRemote("autoplay.startWithArtistIDs", {"artistIDs": radio['seedArtists']})
if 'fault' in result:
+ print "Cannot autoplay artists"
self.radioEnabled = False
else:
self.radioEnabled = True
return False
result = self.callRemote("autoplay.start", {"songIDs": radio['seedSongs']})
if 'fault' in result:
+ print "Cannot autoplay songs"
self.radioEnabled = False
else:
self.radioEnabled = True
radio['seedArtists'].remove(artistId)
except: pass
radio['seedArtists'].append(artistId)
+ print "Saved radio"
return self.saveRadio(radio = radio)
else:
+ print "Failed to get radio"
return False
def radioSong(self, songId = None):
radio['seedSongs'].remove(songId)
except: pass
radio['seedSongs'].append(songId)
+ print "Saved radio"
return self.saveRadio(radio = radio)
else:
+ print "Failed to get radio"
return False
def radioTurnedOn(self):
f.close()
print radio
except:
+ print "Failed to open " + path
radio = {}
radio['seedSongs'] = []
radio['seedArtists'] = []