예제 #1
0
파일: plugin.py 프로젝트: popazerty/e2-gui
 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))
예제 #2
0
 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))