Beispiel #1
0
    def __init__(self, session, entry):
        printl("", self, "S")

        self.session = session
        Screen.__init__(self, session)

        self["actions"] = ActionMap(
            ["SetupActions", "ColorActions"], {
                "green": self.keySave,
                "red": self.keyCancel,
                "blue": self.keyDelete,
                "cancel": self.keyCancel
            }, -2)

        self["key_red"] = StaticText(_("Cancel"))
        self["key_green"] = StaticText(_("OK"))
        self["key_blue"] = StaticText(_("Delete"))

        if entry is None:
            self.newmode = 1
            self.current = initServerEntryConfig()
        else:
            self.newmode = 0
            self.current = entry

        cfglist = [
            getConfigListEntry(_("State"), self.current.state),
            getConfigListEntry(_("Name"), self.current.name),
            getConfigListEntry(_("IP"), self.current.ip),
            getConfigListEntry(_("Port"), self.current.port),
            getConfigListEntry(_("Use Wake on Lan (WoL)"), self.current.wol),
            getConfigListEntry(
                _("Mac address (Size: 12 alphanumeric no seperator) only for WoL"
                  ), self.current.wol_mac),
            getConfigListEntry(_("Wait for server delay (max 180 seconds)"),
                               self.current.wol_delay),
        ]

        #===================================================================
        # getConfigListEntry(_("Connection Type"), self.current.connectionType),
        # getConfigListEntry(_("Transcode (no function yet but soon ;-)"), self.current.transcode),
        # getConfigListEntry(_("Transcode Type (no function yet but soon ;-)"), self.current.transcodeType),
        # getConfigListEntry(_("Quality (no function yet but soon ;-)"), self.current.quality),
        # getConfigListEntry(_("Audio Output (no function yet but soon ;-)"), self.current.audioOutput),
        # getConfigListEntry(_("Stream Mode (no function yet but soon ;-)"), self.current.streamMode),
        #===================================================================

        ConfigListScreen.__init__(self, cfglist, session)

        printl("", self, "C")
Beispiel #2
0
	def __init__(self, session, entry):
		printl("", self, "S")
		
		self.session = session
		Screen.__init__(self, session)

		self["actions"] = ActionMap(["SetupActions", "ColorActions"],
		{
			"green": self.keySave,
			"red": self.keyCancel,
			"blue": self.keyDelete,
			"cancel": self.keyCancel
		}, -2)

		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("OK"))
		self["key_blue"] = StaticText(_("Delete"))

		if entry is None:
			self.newmode = 1
			self.current = initServerEntryConfig()
		else:
			self.newmode = 0
			self.current = entry

		cfglist = [
			getConfigListEntry(_("State"), self.current.state),
			getConfigListEntry(_("Connection Type"), self.current.connectionType),
			getConfigListEntry(_("Name"), self.current.name),
			getConfigListEntry(_("IP"), self.current.ip),
			getConfigListEntry(_("DNS"), self.current.dns),
			getConfigListEntry(_("Port"), self.current.port),
			getConfigListEntry(_("Use Wake on Lan (WoL)"), self.current.wol),
			getConfigListEntry(_("Mac address (Size: 12 alphanumeric no seperator) only for WoL"), self.current.wol_mac),
			getConfigListEntry(_("Wait for server delay (max 180 seconds) only for WoL"), self.current.wol_delay),
		]

			#===================================================================
			# getConfigListEntry(_("Transcode (no function yet but soon ;-)"), self.current.transcode),
			# getConfigListEntry(_("Transcode Type (no function yet but soon ;-)"), self.current.transcodeType),
			# getConfigListEntry(_("Quality (no function yet but soon ;-)"), self.current.quality),
			# getConfigListEntry(_("Audio Output (no function yet but soon ;-)"), self.current.audioOutput),
			# getConfigListEntry(_("Stream Mode (no function yet but soon ;-)"), self.current.streamMode),
			#===================================================================

		ConfigListScreen.__init__(self, cfglist, session)

		printl("", self, "C")
Beispiel #3
0
	def __init__(self, session, entry, data = None):
		printl("", self, "S")
		
		self.session = session
		Screen.__init__(self, session)

		self["actions"] = ActionMap(["SetupActions", "ColorActions"],
		{
			"green": self.keySave,
			"red": self.keyCancel,
			"blue": self.keyDelete,
			"cancel": self.keyCancel,
			"yellow": self.keyYellow,
			"left": self.keyLeft,
			"right": self.keyRight,
		}, -2)

		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("OK"))
		self["key_blue"] = StaticText(_("Delete"))
		self["key_yellow"] = StaticText(_("mappings"))
		self["help"] = StaticText()
		
		if entry is None:
			self.newmode = 1
			self.current = initServerEntryConfig(data)

		else:
			self.newmode = 0
			self.current = entry
			self.currentId = self.current.id.value
			printl("currentId: " + str(self.currentId), self, "D")

		self.cfglist = []
		ConfigListScreen.__init__(self, self.cfglist, session)

		self.createSetup()
		
		self["config"].onSelectionChanged.append(self.updateHelp)
		
		printl("", self, "C")
Beispiel #4
0
    def __init__(self, session, entry):
        printl("", self, "S")

        self.session = session
        Screen.__init__(self, session)

        self["actions"] = ActionMap(
            ["SetupActions", "ColorActions"],
            {
                "green": self.keySave,
                "red": self.keyCancel,
                "blue": self.keyDelete,
                "cancel": self.keyCancel,
                "yellow": self.keyYellow,
                "left": self.keyLeft,
                "right": self.keyRight,
            },
            -2,
        )

        self["key_red"] = StaticText(_("Cancel"))
        self["key_green"] = StaticText(_("OK"))
        self["key_blue"] = StaticText(_("Delete"))
        self["key_yellow"] = StaticText(_("check myPlex Token"))

        if entry is None:
            self.newmode = 1
            self.current = initServerEntryConfig()
        else:
            self.newmode = 0
            self.current = entry
            self.currentId = self.current.id.value
            printl("currentId: " + str(self.currentId), self, "D")

        self.cfglist = []
        ConfigListScreen.__init__(self, self.cfglist, session)

        self.createSetup()

        printl("", self, "C")
Beispiel #5
0
	def __init__(self, session, entry):
		printl("", self, "S")
		
		self.session = session
		Screen.__init__(self, session)

		self["actions"] = ActionMap(["SetupActions", "ColorActions"],
		{
			"green": self.keySave,
			"red": self.keyCancel,
			"blue": self.keyDelete,
			"cancel": self.keyCancel,
			"yellow": self.keyYellow,
			"left": self.keyLeft,
			"right": self.keyRight,
		}, -2)

		self["key_red"] = StaticText(_("Cancel"))
		self["key_green"] = StaticText(_("OK"))
		self["key_blue"] = StaticText(_("Delete"))
		self["key_yellow"] = StaticText(_("mappings"))
		
		if entry is None:
			self.newmode = 1
			self.current = initServerEntryConfig()
		else:
			self.newmode = 0
			self.current = entry
			self.currentId = self.current.id.value
			printl("currentId: " + str(self.currentId), self, "D")

		self.cfglist = []
		ConfigListScreen.__init__(self, self.cfglist, session)
			
		self.createSetup()
		
		printl("", self, "C")
Beispiel #6
0
    def __init__(self, session, entry):
        printl("", self, "S")
        
        self.session = session
        Screen.__init__(self, session)

        self["actions"] = ActionMap(["SetupActions", "ColorActions"],
        {
            "green": self.keySave,
            "red": self.keyCancel,
            "blue": self.keyDelete,
            "cancel": self.keyCancel,
            "yellow": self.keyYellow
        }, -2)

        self["key_red"] = StaticText(_("Cancel"))
        self["key_green"] = StaticText(_("OK"))
        self["key_blue"] = StaticText(_("Delete"))
        self["key_yellow"] = StaticText(_("check myPlex token"))

        if entry is None:
            self.newmode = 1
            self.current = initServerEntryConfig()
        else:
            self.newmode = 0
            self.current = entry

        cfglist = [
            getConfigListEntry(_("State"), self.current.state),
            getConfigListEntry(_("Name"), self.current.name),
            getConfigListEntry(_("[Connection Type] Selection"), self.current.connectionType),
            getConfigListEntry(_("[Connection Type] IP"), self.current.ip),
            getConfigListEntry(_("[Connection Type] DNS"), self.current.dns),
            getConfigListEntry(_("[Connection Type] Port"), self.current.port),
            getConfigListEntry(_("[Connection Type > myPLEX] URL"), self.current.myplexUrl),
            getConfigListEntry(_("[Connection Type > myPLEX] Username"), self.current.myplexUsername),
            getConfigListEntry(_("[Connection Type > myPLEX] Password"), self.current.myplexPassword),
            getConfigListEntry(_("[Connection Type > myPLEX] renew myPlex token"), self.current.renewMyplexToken),
            getConfigListEntry(_("[Playback Type] Selection"), self.current.playbackType),
            getConfigListEntry(_("[Playback Type > TRANSCODED] Transcoding quality"), self.current.quality),
            getConfigListEntry(_("[Playback Type > TRANSCODED] Segmentsize in seconds"), self.current.segments),
            getConfigListEntry(_("[Playback Type > DIRECT LOCAL] Overwrite within remote path part"), self.current.remotePathPart),
            getConfigListEntry(_("[Playback Type > DIRECT LOCAL] Override with local path part"), self.current.localPathPart),
            #getConfigListEntry(_("[Playback Type > DIRECT REMOTE] Username"), self.current.smbUser),
            #getConfigListEntry(_("[Playback Type > DIRECT REMOTE] Password"), self.current.smbPassword),
            #getConfigListEntry(_("[Playback Type > DIRECT REMOTE] Server override IP"), self.current.nasOverrideIp),
            #getConfigListEntry(_("[Playback Type > DIRECT REMOTE] Servers root"), self.current.nasRoot),
            getConfigListEntry(_("[WOL] Use Wake on Lan (WoL)"), self.current.wol),
            getConfigListEntry(_("[WOL] Mac address (Size: 12 alphanumeric no seperator) only for WoL"), self.current.wol_mac),
            getConfigListEntry(_("[WOL] Wait for server delay (max 180 seconds) only for WoL"), self.current.wol_delay),
        ]
            #===================================================================
            # 
            # getConfigListEntry(_("Transcode Type (no function yet but soon ;-)"), self.current.transcodeType),
            # getConfigListEntry(_("Quality (no function yet but soon ;-)"), self.current.quality),
            # getConfigListEntry(_("Audio Output (no function yet but soon ;-)"), self.current.audioOutput),
            # getConfigListEntry(_("Stream Mode (no function yet but soon ;-)"), self.current.streamMode),
            #===================================================================

        ConfigListScreen.__init__(self, cfglist, session)

        printl("", self, "C")