コード例 #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
ファイル: plugin.py プロジェクト: norhap/enigma2-plugins-1
 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))