Example #1
0
	def KeyOk(self):
		sel = self["list"].getCurrent()
		if sel:
			if sel == "EPGSettings":
				from Screens.Setup import Setup
				self.session.open(Setup, "epgsettings")
			elif sel == "EPGSearch":
				from Plugins.Extensions.EPGSearch.EPGSearch import EPGSearch as epgsearch
				self.session.open(epgsearch)
			elif sel == "EPGRefresh":
				if os.path.exists("/usr/lib/enigma2/python/Plugins/Extensions/EPGRefresh/plugin.pyo"):
					from Plugins.Extensions.EPGRefresh.EPGRefreshConfiguration import EPGRefreshConfiguration
					self.session.open(EPGRefreshConfiguration)
				else:
					self.session.open(MessageBox, _("Sorry! EPGRefresh - It not installed"), MessageBox.TYPE_INFO, timeout = 5)
			elif sel == "Movistar+ (MHW2)":
				from Plugins.Extensions.LDteam.LdEpg import LDepgScreen
				self.session.open(LDepgScreen)
			elif sel == "CrossEPG":
				if os.path.exists("/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/plugin.pyo"):
					from Plugins.SystemPlugins.CrossEPG.crossepg_main import crossepg_main
					crossepg_main.setup(self.session)
				else:
					self.session.open(MessageBox, _("Sorry! CrossEPG - It not installed"), MessageBox.TYPE_INFO, timeout = 5)
			elif sel == "EPGImport":
				if os.path.exists("/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/plugin.pyo"):
					from Plugins.Extensions.EPGImport.plugin import EPGImportConfig
					self.session.open(EPGImportConfig)
				else:
					self.session.open(MessageBox, _("Sorry! EPGImport - It not installed"), MessageBox.TYPE_INFO, timeout = 5)
Example #2
0
 def KeyOk(self):
     sel = self["list"].getCurrent()
     if sel:
         if sel == "CrossEPG":
             try:
                 from Plugins.SystemPlugins.CrossEPG.crossepg_main import crossepg_main
                 crossepg_main.setup(self.session)
             except:
                 self.session.open(MessageBox,
                                   _("Sorry, plugin not available"),
                                   MessageBox.TYPE_INFO)
         elif sel == "EPGSettings":
             from Screens.Setup import Setup
             self.session.open(Setup, "epgsettings")
         elif sel == "EPGImport":
             try:
                 from Plugins.Extensions.EPGImport.plugin import main as xmltv
                 xmltv(self.session)
             except:
                 self.session.open(MessageBox,
                                   _("Sorry, plugin not available"),
                                   MessageBox.TYPE_INFO)
         elif sel == "EPGSearch":
             try:
                 from Plugins.Extensions.EPGSearch.EPGSearch import EPGSearch as epgsearch
                 self.session.open(epgsearch)
             except:
                 self.session.open(MessageBox,
                                   _("Sorry, plugin not available"),
                                   MessageBox.TYPE_INFO)
Example #3
0
	def KeyOk(self):
		sel = self["list"].getCurrent()
		if sel:
			if sel == "EPGSettings":
				from Screens.Setup import Setup
				self.session.open(Setup, "epgsettings")
			elif sel == "EPGSearch":
				from Plugins.Extensions.EPGSearch.EPGSearch import EPGSearch as epgsearch
				self.session.open(epgsearch)
			elif sel == "EPGRefresh":
				if os.path.exists("/usr/lib/enigma2/python/Plugins/Extensions/EPGRefresh/plugin.pyo"):
					from Plugins.Extensions.EPGRefresh.EPGRefreshConfiguration import EPGRefreshConfiguration
					self.session.open(EPGRefreshConfiguration)
				else:
					self.session.open(MessageBox, _("Sorry! EPGRefresh - It not installed"), MessageBox.TYPE_INFO, timeout = 5)
			elif sel == "Movistar+ (MHW2)":
				from Plugins.Extensions.LDteam.LdEpg import LDepgScreen
				self.session.open(LDepgScreen)
			elif sel == "CrossEPG":
				if os.path.exists("/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/plugin.pyo"):
					from Plugins.SystemPlugins.CrossEPG.crossepg_main import crossepg_main
					crossepg_main.setup(self.session)
				else:
					self.session.open(MessageBox, _("Sorry! CrossEPG - It not installed"), MessageBox.TYPE_INFO, timeout = 5)
			elif sel == "EPGImport":
				if os.path.exists("/usr/lib/enigma2/python/Plugins/Extensions/EPGImport/plugin.pyo"):
					from Plugins.Extensions.EPGImport.plugin import EPGImportConfig
					self.session.open(EPGImportConfig)
				else:
					self.session.open(MessageBox, _("Sorry! EPGImport - It not installed"), MessageBox.TYPE_INFO, timeout = 5)
Example #4
0
	def keyRed(self):
		if fileExists("/usr/lib/enigma2/python/Plugins/SystemPlugins/CrossEPG/plugin.pyo"):
		   from Plugins.SystemPlugins.CrossEPG.crossepg_main import crossepg_main
		   crossepg_main.setup(self.session)
		   
		else:
		   self.session.open(MessageBox, _("Sorry, Epg function not available For your spark But you can install it manually If You Want And Try To Run It Again"), MessageBox.TYPE_INFO)	
Example #5
0
	def KeyOk(self):
		sel = self["list"].getCurrent()
		if sel:
			if sel == "CrossEPG":
				from Plugins.SystemPlugins.CrossEPG.crossepg_main import crossepg_main
				crossepg_main.setup(self.session)
			elif sel == "EPGSettings":
				from Screens.Setup import Setup
				self.session.open(Setup, "epgsettings")
			elif sel == "EPGImport":
				from Plugins.Extensions.EPGImport.plugin import main as xmltv
				xmltv(self.session)
			elif sel == "EPGSearch":
				#from Plugins.Extensions.EPGSearch.plugin import main as epgsearch
				#epgsearch(self.session)
				from Plugins.Extensions.EPGSearch.EPGSearch import EPGSearch  as epgsearch
				self.session.open(epgsearch)
Example #6
0
 def KeyOk(self):
     sel = self["list"].getCurrent()
     if sel:
         if sel == "CrossEPG":
             from Plugins.SystemPlugins.CrossEPG.crossepg_main import crossepg_main
             crossepg_main.setup(self.session)
         elif sel == "EPGSettings":
             from Screens.Setup import Setup
             self.session.open(Setup, "epgsettings")
         elif sel == "EPGImport":
             from Plugins.Extensions.EPGImport.plugin import main as xmltv
             xmltv(self.session)
         elif sel == "EPGSearch":
             #from Plugins.Extensions.EPGSearch.plugin import main as epgsearch
             #epgsearch(self.session)
             from Plugins.Extensions.EPGSearch.EPGSearch import EPGSearch as epgsearch
             self.session.open(epgsearch)
Example #7
0
	def keyRed(self):
		from Plugins.SystemPlugins.CrossEPG.crossepg_main import crossepg_main
		crossepg_main.setup(self.session)
Example #8
0
 def keyRed(self):
     from Plugins.SystemPlugins.CrossEPG.crossepg_main import crossepg_main
     crossepg_main.setup(self.session)