Esempio n. 1
0
    def __init__(self, session):
        Screen.__init__(self, session)
        NumericalTextInput.__init__(self)

        self.session = session
        self.serverName = config.plugins.youtubeplayer.serverprofile.value
        self.currentServer = vlcServerConfig.getServerByName(self.serverName)

        self["red"] = Label(_("Select a VLC-Server"))
        self["green"] = Label(_("New YouTube search"))

        self.list = []
        self["list"] = YouTubeList(self.list)

        self["label_total_results"] = Label(_("Total results") + ":")
        self["total_results"] = Label("")

        self["label_currently_shown"] = Label(_("Shown") + ":")
        self["currently_shown"] = Label("")

        self.history = []
        self.historyIndex = 0

        self.isFavoritesFeed = False

        self.patientDialog = None

        self["actions"] = ActionMap(
            ["YouTubeVideoListActions"], {
                "play": self.tryToPlay,
                "select": self.justSelectServer,
                "search": self.searchAgain,
                "menu": self.openContextMenu,
                "forward": self.forwardInHistory,
                "backward": self.backInHistory,
                "left": self.keyLeft,
                "right": self.keyRight,
                "up": self.keyUp,
                "down": self.keyDown,
                "info": self.showVideoInfo,
                "cancel": self.close
            }, -1)
Esempio n. 2
0
	def __init__(self, session):
		Screen.__init__(self, session)
		NumericalTextInput.__init__(self)

		self.session = session
		self.serverName = config.plugins.youtubeplayer.serverprofile.value
		self.currentServer = vlcServerConfig.getServerByName(self.serverName)

		self["red"] = Label(_("Select a VLC-Server"))
		self["green"] = Label(_("New YouTube search"))
		
		self.list = []
		self["list"] = YouTubeList(self.list)

		self["label_total_results"] = Label(_("Total results") + ":")
		self["total_results"] = Label("")

		self["label_currently_shown"] = Label(_("Shown") + ":")
		self["currently_shown"] = Label("")

		self.history = []
		self.historyIndex = 0

		self.isFavoritesFeed = False

		self.patientDialog = None
		
		self["actions"] = ActionMap(["YouTubeVideoListActions"],
		{
			"play"			:	self.tryToPlay,
			"select"		:	self.justSelectServer,
			"search"		:	self.searchAgain,
			"menu"			:	self.openContextMenu,
			"forward"		:	self.forwardInHistory,
			"backward"		:	self.backInHistory,
			"left"			:	self.keyLeft,
			"right"			:	self.keyRight,
			"up"			:	self.keyUp,
			"down"			:	self.keyDown,
			"info"			:	self.showVideoInfo,
			"cancel"		:	self.close
		}, -1)
Esempio n. 3
0
 def justSelectServer(self):
     defaultServer = vlcServerConfig.getServerByName(
         config.plugins.youtubeplayer.serverprofile.value)
     self.selectServer(self.serverSelectedCB, defaultServer)
Esempio n. 4
0
	def justSelectServer(self):
		defaultServer = vlcServerConfig.getServerByName(config.plugins.youtubeplayer.serverprofile.value)
		self.selectServer(self.serverSelectedCB, defaultServer)