示例#1
0
                                                          choices=[('yes',
                                                                    _('yes')),
                                                                   ('no',
                                                                    _('no'))])
if os.path.isfile("/lib/modules/cifs.ko"):
    config.plugins.systemoptions.cifs = ConfigSelection(default='no',
                                                        choices=[
                                                            ('yes', _('yes')),
                                                            ('no', _('no'))
                                                        ])
if os.path.isfile("/boot/audio_dts.elf"):
    config.plugins.systemoptions.dtsdownmix = ConfigSelection(
        default='on', choices=[('on', _('on')), ('off', _('off'))])
#if stb.lower() == 'hdbox':
#	hdbox specific options go here
if stb.lower() == 'spark7162' or stb.lower() == 'spark':
    config.plugins.systemoptions.tunertype = ConfigSelection(
        default='t',
        choices=[('t', _('terrestrial (DVB-T)')), ('c', _('cable (DVB-C)'))])
#	config.plugins.systemoptions.freq = ConfigSelection(default='540',
#		choices = [
#			('200', _('200 MHz')),
#			('300', _('300 MHz')),
#			('450', _('450 MHz')),
#			('500', _('500 MHz')),
#			('540', _('540 MHz (default)')),
#			('600', _('600 MHz')),
#			('630', _('630 MHz')),
#			('650', _('650 MHz')),
#			('700', _('700 MHz')),
#			('710', _('710 MHz')),
示例#2
0
    for x in TranslationHelper:
        if block.__contains__(x[0]):
            block = block.replace(x[0], x[1])
    return block


try:
    DisplayType = evfd.getInstance().getVfdType()
    if DisplayType != 11:
        DisplayType = None
except:
    DisplayType = None
DisplayTypevfd = DisplayType

if DisplayTypevfd is None:
    if stb.lower() == 'hs7420' or stb.lower() == 'hs7429':
        DisplayType = 11
    else:
        DisplayType = None

config.plugins.vfdicon = ConfigSubsection()
config.plugins.vfdicon.displayshow = ConfigSelection(
    default="channel",
    choices=[("nothing", _("blank")), ("channel number", _("channel number")),
             ("channel", _("channel name")),
             ("channel namenumber", _("channel number and name")),
             ("date", _("date")), ("day_date", _("day and date"))])
config.plugins.vfdicon.stbshow = ConfigSelection(default="time",
                                                 choices=[("nothing",
                                                           _("nothing")),
                                                          ("time", _("time")),
示例#3
0
from Screens.Screen import Screen
from translit import translify
import gettext

stb = HardwareInfo().get_device_name()

try:
    DisplayType = evfd.getInstance().getVfdType()
    if DisplayType != 4:
        DisplayType = None
except:
    DisplayType = None
DisplayTypevfd = DisplayType

if DisplayTypevfd is None:
    if stb.lower() == 'spark':
        DisplayType = 4
    else:
        DisplayType = None

config.plugins.vfdicon = ConfigSubsection()
config.plugins.vfdicon.displayshow = ConfigSelection(
    default="channel_namenumber",
    choices=[("nothing", _("blank")), ("channel_number", _("channel number")),
             ("channel", _("channel name")),
             ("channel_namenumber", _("channel number and name")),
             ("time", _("time")), ("date", _("date")),
             ("day_date", _("day and date"))])
config.plugins.vfdicon.stbdisplayshow = ConfigSelection(
    default="time",
    choices=[("nothing", _("nothing")), ("time", _("time")),
示例#4
0
文件: plugin.py 项目: vuteam/sh4-bh
    for x in TranslationHelper:
        if block.__contains__(x[0]):
            block = block.replace(x[0], x[1])
    return block


try:
    DisplayType = evfd.getInstance().getVfdType()
    if DisplayType != 5:
        DisplayType = None
except:
    DisplayType = None
DisplayTypevfd = DisplayType

if DisplayTypevfd is None:
    if stb.lower() == 'atevio7500' or stb.lower() == 'hs8200':
        DisplayType = 5
    else:
        DisplayType = None

config.plugins.vfdicon = ConfigSubsection()
config.plugins.vfdicon.displayshow = ConfigSelection(
    default="channel",
    choices=[("nothing", _("blank")), ("channel number", _("channel number")),
             ("channel", _("channel name")),
             ("channel namenumber", _("channel number and name")),
             ("time", _("time (with seconds)")),
             ("timeHM", _("time (without seconds)")), ("date", _("date")),
             ("time_date", _("time and date")),
             ("day_date", _("day and date"))])
config.plugins.vfdicon.stbshow = ConfigSelection(
示例#5
0
def translateBlock(block):
	for x in TranslationHelper:
		if block.__contains__(x[0]):
			block = block.replace(x[0], x[1])
	return block

try:
	DisplayType = evfd.getInstance().getVfdType()
	if DisplayType != 9:
		DisplayType = None
except:
	DisplayType = None
DisplayTypevfd = DisplayType

if DisplayTypevfd is None:
	if stb.lower() == 'hs7810a' or stb.lower() == 'hs7819' or stb.lower() == 'hs7119':
		DisplayType = 9
	else:
		DisplayType = None

config.plugins.vfdicon = ConfigSubsection()
config.plugins.vfdicon.displayshow = ConfigSelection(default = "channel number",
	choices = [
		("nothing", _("blank")),
		("channel number", _("channel number")),
		("channel", _("channel name")),
		("channel namenumber", _("channel number and name")),
		("date", _("date")),
		("day_date", _("day and date"))
		])
config.plugins.vfdicon.stbshow = ConfigSelection(default = "time",
示例#6
0
def translateBlock(block):
	for x in TranslationHelper:
		if block.__contains__(x[0]):
			block = block.replace(x[0], x[1])
	return block

try:
	DisplayType = evfd.getInstance().getVfdType()
	if DisplayType != 7:
		DisplayType = None
except:
	DisplayType = None
DisplayTypevfd = DisplayType

if DisplayTypevfd is None:
	if stb.lower() == 'octagon1008':
		DisplayType = 7
	else:
		DisplayType = None

config.plugins.vfdicon = ConfigSubsection()
config.plugins.vfdicon.displayshow = ConfigSelection(default = "channel",
	choices = [
		("nothing", _("blank")),
		("channel number", _("channel number")),
		("channel", _("channel name")),
		("channel namenumber", _("channel number and name")),
		("date", _("date")),
		("day_date", _("day and date"))
		])
config.plugins.vfdicon.stbshow = ConfigSelection(default = "time",
示例#7
0
def translateBlock(block):
	for x in TranslationHelper:
		if block.__contains__(x[0]):
			block = block.replace(x[0], x[1])
	return block

try:
	DisplayType = evfd.getInstance().getVfdType()
	if DisplayType != 6:
		DisplayType = None
except:
	DisplayType = None
DisplayTypevfd = DisplayType

if DisplayTypevfd is None:
	if stb.lower() == 'hdbox' or stb.lower() == 'fortis':
		DisplayType = 6
	else:
		DisplayType = None

config.plugins.vfdicon = ConfigSubsection()
config.plugins.vfdicon.displayshow = ConfigSelection(default = "channel",
	choices = [
		("nothing", _("blank")),
		("channel number", _("channel number")),
		("channel", _("channel name")),
		("channel namenumber", _("channel number and name")),
		("time", _("time")),
		("date", _("date")),
		("time_date", _("time and date")),
		("day_date", _("day and date"))
示例#8
0
from Tools.HardwareInfo import HardwareInfo
from Screens.Screen import Screen
import gettext
#Version 140128.3
stb = HardwareInfo().get_device_name()+++

try:
	DisplayType = evfd.getInstance().getVfdType()
	if DisplayType != 10:
		DisplayType = None
except:
	DisplayType = None
DisplayTypevfd = DisplayType

if DisplayTypevfd is None:
	if stb.lower() == 'hs7110':
		DisplayType = 10
	else:
		DisplayType = None
config.plugins.vfdicon = ConfigSubsection()
config.plugins.vfdicon.standbyredled = ConfigSlider(default=7, limits=(1, 7))
#config.plugins.vfdicon.dstandbyredled = ConfigSlider(default=1, limits=(1, 7))
config.plugins.vfdicon.extMenu = ConfigYesNo(default=True)

class ConfigVFDDisplay(Screen, ConfigListScreen):
	def __init__(self, session):
		self.icons_showicons = None
		Screen.__init__(self, session)
		self.skinName = ["Setup"]
		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("OK"))