def getOptions(self):
		options = []
		options.append( (_("Show undefined service(s)"), config.infobartunerstate.plugin_unknown.enabled) )
		
		if config.infobartunerstate.plugin_unknown.enabled.value:
			options.append( (_("   Show events of undefined service(s)"), config.infobartunerstate.plugin_unknown.show_events) )
		
		return options
Exemplo n.º 2
0
	def getOptions(self):
		options = []
		options.append( (_("Show transcoded stream(s) (StreamServer)"), config.infobartunerstate.plugin_streamserver.enabled) )
		
		if config.infobartunerstate.plugin_streamserver.enabled.value:
			options.append( (_("   Show events of transcoded stream(s) (StreamServer)"), config.infobartunerstate.plugin_streamserver.show_events) )
		
		return options
	def getOptions(self):
		options = []
		options.append( (_("Show transcoded stream(s) (OpenWebIf)"), config.infobartunerstate.plugin_openwebif.enabled) )
		
		if config.infobartunerstate.plugin_openwebif.enabled.value:
			options.append( (_("   Show events of transcoded stream(s) (OpenWebIf)"), config.infobartunerstate.plugin_openwebif.show_events) )
		
		return options
	def getOptions(self):
		options = []
		options.append( (_("Show record(s)"), config.infobartunerstate.plugin_records.enabled) )
		
		if config.infobartunerstate.plugin_records.enabled.value:
			options.append( (_("   Number of finished record(s)"),             config.infobartunerstate.plugin_records.number_finished_records) )
			options.append( (_("   Show finished records only for x hour(s)"), config.infobartunerstate.plugin_records.finished_hours) )
		
		return options
Exemplo n.º 5
0
 def getOptions(self):
     return [
         (_("Show pending timer(s)"),
          config.infobartunerstate.plugin_timers.enabled),
         (_("Number of pending timer(s)"),
          config.infobartunerstate.plugin_timers.number_pending_timers),
         (_("Show pending records only within x hour(s)"),
          config.infobartunerstate.plugin_timers.pending_hours),
     ]
	def getOptions(self):
		options = []
		options.append( (_("Show pending timer(s)"), config.infobartunerstate.plugin_timers.enabled ) )
		
		if config.infobartunerstate.plugin_timers.enabled.value:
			options.append( (_("   Number of pending timer(s)"),                 config.infobartunerstate.plugin_timers.number_pending_timers) )
			options.append( (_("   Show pending records only within x hour(s)"), config.infobartunerstate.plugin_timers.pending_hours) )
			options.append( (_("   Show Energy shedule timers"),                 config.infobartunerstate.plugin_timers.show_energy_timers) )
		
		return options
    def getOptions(self):
        options = []
        options.append((_("Show undefined service(s)"),
                        config.infobartunerstate.plugin_unknown.enabled))

        if config.infobartunerstate.plugin_unknown.enabled.value:
            options.append(
                (_("   Show events of undefined service(s)"),
                 config.infobartunerstate.plugin_unknown.show_events))

        return options
Exemplo n.º 8
0
    def getOptions(self):
        options = []
        options.append((_("Show record(s)"),
                        config.infobartunerstate.plugin_records.enabled))

        if config.infobartunerstate.plugin_records.enabled.value:
            options.append(
                (_("   Number of finished record(s)"), config.
                 infobartunerstate.plugin_records.number_finished_records))
            options.append(
                (_("   Show finished records only for x hour(s)"),
                 config.infobartunerstate.plugin_records.finished_hours))

        return options
    def onShow(self, tunerstates):
        if config.infobartunerstate.plugin_unknown.enabled.value:
            toadd = self.tuners[:]
            type = self.getType()
            for id, tunerstate in tunerstates.items():
                if tunerstate.type != type:
                    if tunerstate.tunernumber in toadd:
                        #log.debug( "IBTS UNKNOWN toadd remove", tunerstate.tunernumber )
                        toadd.remove(tunerstate.tunernumber)

            # Check if we have to add an entry
            if toadd:
                from Plugins.Extensions.InfoBarTunerState.plugin import gInfoBarTunerState
                if gInfoBarTunerState:
                    for tunernumber in toadd:

                        id = "Unknown" + str(tunernumber)
                        if gInfoBarTunerState and not gInfoBarTunerState.hasEntry(
                                id):

                            tuner = getTunerName(tunernumber)

                            #log.debug( "IBTS UNKNOWN append ", tunernumber )
                            self.tunerstates.append(tunernumber)

                            gInfoBarTunerState.addEntry(
                                id, self.getPluginName(), self.getType(),
                                self.getText(), tuner, "-", tunernumber,
                                _("Used by unknown service"), "-", "-", "", "",
                                time())

            # Check if we have to remove an entry
            if self.tunerstates:
                from Plugins.Extensions.InfoBarTunerState.plugin import gInfoBarTunerState
                if gInfoBarTunerState:
                    for tunernumber in self.tunerstates:

                        if tunernumber not in self.tuners:
                            id = "Unknown" + str(tunernumber)

                            #log.debug( "IBTS UNKNOWN remove ", tunernumber )
                            self.tunerstates.remove(tunernumber)

                            gInfoBarTunerState.finishEntry(id)
Exemplo n.º 10
0
from time import time

# Config
from Components.config import config, ConfigSubsection, ConfigYesNo, ConfigSelection, ConfigSelectionNumber

from enigma import eEPGCache

# Plugin internal
from Plugins.Extensions.InfoBarTunerState.__init__ import _
from Plugins.Extensions.InfoBarTunerState.PluginBase import PluginBase
from Plugins.Extensions.InfoBarTunerState.Helper import getTunerByPlayableService, getNumber, getChannel
from Plugins.Extensions.InfoBarTunerState.Logger import log

# Config options
event_choices = [("no", _("no")), ("start", _("Start record")),
                 ("end", _("End record")),
                 ("startend", _("Start / End record"))]
config.infobartunerstate.plugin_records = ConfigSubsection()
config.infobartunerstate.plugin_records.enabled = ConfigYesNo(default=True)
config.infobartunerstate.plugin_records.number_finished_records = ConfigSelectionNumber(
    0, 10, 1, default=3)
config.infobartunerstate.plugin_records.finished_hours = ConfigSelectionNumber(
    0, 1000, 1, default=0)
config.infobartunerstate.plugin_records.show_events = ConfigSelection(
    default="startend", choices=event_choices)


def getTimerID(timer):
    return 'record %x %s %x' % (id(timer), timer.name, int(timer.eit or 0))
Exemplo n.º 11
0
	def getOptions(self):
		return [(_("Show undefined service(s)"), config.infobartunerstate.plugin_unknown.enabled),]
	def onShow(self, tunerstates):
		if config.infobartunerstate.plugin_unknown.enabled.value:
			toadd = self.tuners[:]
			type = self.getType()
			for id, tunerstate in tunerstates.items():
				if tunerstate.type != type:
					if tunerstate.tunernumber in toadd:
						#log.debug( "IBTS UNKNOWN toadd remove", tunerstate.tunernumber )
						toadd.remove(tunerstate.tunernumber)
			
			# Check if we have to add an entry
			if toadd:
				from Plugins.Extensions.InfoBarTunerState.plugin import gInfoBarTunerState
				if gInfoBarTunerState:
					for tunernumber in toadd:
						
						id = "Unknown"+str(tunernumber)
						if gInfoBarTunerState and not gInfoBarTunerState.hasEntry(id):
							
							tuner = getTunerName(tunernumber)
							
							#log.debug( "IBTS UNKNOWN append ", tunernumber )
							self.tunerstates.append(tunernumber)
							
							gInfoBarTunerState.addEntry(id, self.getPluginName(), self.getType(), self.getText(), tuner, "-", tunernumber, _("Used by unknown service"), "-", "-", "", "", time() )
			
			# Check if we have to remove an entry
			if self.tunerstates:
				from Plugins.Extensions.InfoBarTunerState.plugin import gInfoBarTunerState
				if gInfoBarTunerState:
					for tunernumber in self.tunerstates:
					
						if tunernumber not in self.tuners:
							id = "Unknown"+str(tunernumber)
							
							#log.debug( "IBTS UNKNOWN remove ", tunernumber )
							self.tunerstates.remove(tunernumber)
							
							gInfoBarTunerState.finishEntry(id)
 def getOptions(self):
     return [
         (_("Show transcoded stream(s) (OpenWebIf)"),
          config.infobartunerstate.plugin_openwebif.enabled),
     ]
Exemplo n.º 14
0
	def getOptions(self):
		return [(_("Show PiP service(s)"), config.infobartunerstate.plugin_pip.enabled),]
Exemplo n.º 15
0
	def getOptions(self):
		return [(_("Show record(s)"), config.infobartunerstate.plugin_records.enabled),]
Exemplo n.º 16
0
	def getOptions(self):
		return [(_("Show live tuner"), config.infobartunerstate.plugin_live.enabled),]
Exemplo n.º 17
0
	def getOptions(self):
		return [(_("Show transcoded stream(s) (WebIf)"), config.infobartunerstate.plugin_streamserver.enabled),]
 def getOptions(self):
     return [(_("Show stream(s) (WebIf)"), config.infobartunerstate.plugin_webif.enabled)]
Exemplo n.º 19
0
	def getOptions(self):
		return [(_("Show undefined service(s)"), config.infobartunerstate.plugin_unknown.enabled),]
Exemplo n.º 20
0
	def getOptions(self):
		return [(_("Show transcoded stream(s) (OpenWebIf)"), config.infobartunerstate.plugin_openwebif.enabled),]
# Config
from Components.config import config, ConfigSubsection, ConfigYesNo, ConfigSelection, ConfigSelectionNumber

from enigma import eEPGCache

# Plugin internal
from Plugins.Extensions.InfoBarTunerState.__init__ import _
from Plugins.Extensions.InfoBarTunerState.PluginBase import PluginBase
from Plugins.Extensions.InfoBarTunerState.Helper import getTunerByPlayableService, getNumber, getChannel
from Plugins.Extensions.InfoBarTunerState.Logger import log


# Config options
event_choices = [	
					( "start",		_("Start record")),
					( "end",		_("End record")),
					( "startend",	_("Start / End record"))
				]
config.infobartunerstate.plugin_records                           = ConfigSubsection()
config.infobartunerstate.plugin_records.enabled                   = ConfigYesNo(default = True)
config.infobartunerstate.plugin_records.number_finished_records   = ConfigSelectionNumber(0, 10, 1, default = 3)
config.infobartunerstate.plugin_records.finished_hours            = ConfigSelectionNumber(0, 1000, 1, default = 0)
config.infobartunerstate.plugin_records.show_events               = ConfigSelection(default = "startend", choices = event_choices)


def getTimerID(timer):
	return 'record %x %s %x' % ( id(timer), timer.name, int(timer.eit or 0) )

def getTimer(id):
	from NavigationInstance import instance
 def getOptions(self):
     return [
         (_("Show record(s)"),
          config.infobartunerstate.plugin_records.enabled),
     ]
Exemplo n.º 23
0
 def getOptions(self):
     return [
         (_("Show pending timer(s)"), config.infobartunerstate.plugin_timers.enabled),
         (_("Number of pending timer(s)"), config.infobartunerstate.plugin_timers.number_pending_timers),
         (_("Show pending records only within x hour(s)"), config.infobartunerstate.plugin_timers.pending_hours),
     ]
Exemplo n.º 24
0
# Config
from Components.config import config, ConfigSubsection, ConfigYesNo, ConfigSelection

from enigma import eEPGCache

# Plugin internal
from Plugins.Extensions.InfoBarTunerState.__init__ import _
from Plugins.Extensions.InfoBarTunerState.PluginBase import PluginBase
from Plugins.Extensions.InfoBarTunerState.Helper import getTunerByPlayableService, getNumber, getChannel
from Plugins.Extensions.InfoBarTunerState.Logger import log


# Config options
event_choices = [	
					( "start",		_("Start record")),
					( "end",		_("End record")),
					( "startend",	_("Start / End record"))
				]
config.infobartunerstate.plugin_records             = ConfigSubsection()
config.infobartunerstate.plugin_records.enabled     = ConfigYesNo(default = True)
config.infobartunerstate.plugin_records.show_events = ConfigSelection(default = "startend", choices = event_choices)


def getTimerID(timer):
	#return str( timer.name ) + str( timer.repeatedbegindate ) + str( timer.service_ref ) + str( timer.justplay )
	#return str( timer )
	#return '<%s instance at %x name=%s %s>' % (self.__class__.__name__, id(self), self.name, hasattr(self,"Filename") and self.Filename or "")
	return 'record %x %s %x' % ( id(timer), timer.name, int(timer.eit or 0) )

def getTimer(id):
Exemplo n.º 25
0
	def getOptions(self):
		return [(_("Show live tuner"), config.infobartunerstate.plugin_live.enabled),]
Exemplo n.º 26
0
 def getOptions(self):
     return [
         (_("Show stream(s) (WebIf)"),
          config.infobartunerstate.plugin_webif.enabled),
     ]
Exemplo n.º 27
0
 def getOptions(self):
     return [
         (_("Show transcoded stream(s) (WebIf)"),
          config.infobartunerstate.plugin_streamserver.enabled),
     ]