示例#1
0
 def okbuttonClick(self):
     selection = self["menu"].getCurrent()
     if selection is not None:
         if selection[1] == "radio":
             InfoBar.showRadio(InfoBar.instance)
             self.exit()
         if selection[1] == "tv":
             InfoBar.showTv(InfoBar.instance)
             self.exit()
         elif selection[1] == "pvr":
             InfoBar.showMovies(InfoBar.instance)
         elif selection[1] == "bmc":
             InfoBar.showMediaCenter(InfoBar.instance)
         elif selection[1] == "emc":
             try:
                 from Plugins.Extensions.EnhancedMovieCenter.plugin import showMoviesNew
                 open(showMoviesNew(InfoBar.instance))
             except Exception as e:
                 print('[EMCPlayer] showMovies exception:\n' + str(e))
         elif selection[1] == "MediaPortal":
             InfoBar.showPORTAL(InfoBar.instance)
         elif selection[1] == "MediaPlayer":
             InfoBar.showMediaPlayer(InfoBar.instance)
         elif selection[1] == "AZPlay":
             try:
                 from Plugins.Extensions.AZPlay.plugin import main
                 open(main(self.session))
             except Exception as e:
                 print('[AZPlay] exception:\n' + str(e))
         elif selection[1] == "teletext":
             self.InfoBarTeletextPlugin()
示例#2
0
	def okbuttonClick(self):
		selection = self["menu"].getCurrent()
		if selection is not None:
			if selection[1] == "radio":
				InfoBar.showRadio(InfoBar.instance)
				self.exit()
			if selection[1] == "tv":
				InfoBar.showTv(InfoBar.instance)
				self.exit()
			elif selection[1] == "pvr":
				InfoBar.showMoviePlayer(InfoBar.instance)
			elif selection[1] == "bmc":
				InfoBar.showMediaCenter(InfoBar.instance)
			elif selection[1] == "emc":
				try:
					from Plugins.Extensions.EnhancedMovieCenter.plugin import showMoviesNew
					open(showMoviesNew(InfoBar.instance))
				except Exception as e:
					print('[EMCPlayer] showMovies exception:\n' + str(e))
			elif selection[1] == "MediaPortal":
				InfoBar.showPORTAL(InfoBar.instance)
			elif selection[1] == "MediaPlayer":
				InfoBar.showMediaPlayer(InfoBar.instance)
			elif selection[1] == "AZPlay":
				try:
					from Plugins.Extensions.AZPlay.plugin import main
					open(main(self.session))
				except Exception as e:
					print('[AZPlay] exception:\n' + str(e))					
			elif selection[1] == "teletext":
				self.InfoBarTeletextPlugin()