def onTextForCustomStationEntered(self, text): print "onTextForCustomStationEntered", text, self.customstationtype if text is not None: if self.customstationtype == "artist": self.changeStation(urllib2_qoute("lastfm://artist/%s/similarartists" % text)) elif self.customstationtype == "groupe": self.changeStation(urllib2_qoute("lastfm://group/%s" % text)) elif self.customstationtype == "tag": self.changeStation(urllib2_qoute("lastfm://globaltags/%s" % text))
def onTextForCustomStationEntered(self,text): print("onTextForCustomStationEntered",text,self.customstationtype) if text is not None: if self.customstationtype =="artist": self.changeStation(urllib2_qoute("lastfm://artist/%s/similarartists"%text)) elif self.customstationtype =="groupe": self.changeStation(urllib2_qoute("lastfm://group/%s"%text)) elif self.customstationtype =="tag": self.changeStation(urllib2_qoute("lastfm://globaltags/%s"%text))