예제 #1
0
    def displayOptionsMenu(self):
        pluginList = []

        pluginList.append((
            _("Set view as default"),
            Plugin("View", fnc=self.setDefaultView),
        ))
        pluginList.append((
            _("Clear default view"),
            Plugin("View", fnc=self.clearDefaultView),
        ))

        plugins = getPlugins(where=Plugin.MENU_MOVIES_PLUGINS)
        for plugin in plugins:
            pluginList.append((
                plugin.name,
                plugin,
            ))

        if len(pluginList) == 0:
            pluginList.append((
                _("No plugins available"),
                None,
            ))

        self.session.openWithCallback(self.displayOptionsMenuCallback, ChoiceBox, \
         title=_("Options"), list=pluginList)
예제 #2
0
 def notifyEntryStopped(self, flags):
     printl("", self, "D")
     args = {}
     args["status"] = "stopped"
     plugins = getPlugins(where=Plugin.INFO_PLAYBACK)
     for plugin in plugins:
         printl("plugin.name=" + str(plugin.name), self, "D")
         plugin.fnc(args, flags)
예제 #3
0
 def notifyEntryPlaying(self, entry, flags):
     printl("", self, "D")
     args = self.buildInfoPlaybackArgs(entry)
     args["status"] = "playing"
     plugins = getPlugins(where=Plugin.INFO_PLAYBACK)
     for plugin in plugins:
         printl("plugin.name=" + str(plugin.name), self, "D")
         plugin.fnc(args, flags)
예제 #4
0
 def notifyEntryStopped(self, flags):
     printl("", self, "D")
     args = {}
     args["status"] = "stopped"
     plugins = getPlugins(where=Plugin.INFO_PLAYBACK)
     for plugin in plugins:
         printl("plugin.name=" + str(plugin.name), self, "D")
         plugin.fnc(args, flags)
예제 #5
0
 def notifyEntryPlaying(self, entry, flags):
     printl("", self, "D")
     args = self.buildInfoPlaybackArgs(entry)
     args["status"]  = "playing"
     plugins = getPlugins(where=Plugin.INFO_PLAYBACK)
     for plugin in plugins:
         printl("plugin.name=" + str(plugin.name), self, "D")
         plugin.fnc(args, flags)
예제 #6
0
	def displayOptionsMenu(self):
		pluginList = []
		
		pluginList.append((_("Set view as default"), Plugin("View", fnc=self.setDefaultView), ))
		pluginList.append((_("Clear default view"), Plugin("View", fnc=self.clearDefaultView), ))
		
		plugins = getPlugins(where=Plugin.MENU_MOVIES_PLUGINS)
		for plugin in plugins:
			pluginList.append((plugin.name, plugin, ))
		
		if len(pluginList) == 0:
			pluginList.append((_("No plugins available"), None, ))
		
		self.session.openWithCallback(self.displayOptionsMenuCallback, ChoiceBox, \
			title=_("Options"), list=pluginList)
예제 #7
0
	def notifyEntryStopped(self, flags):
		'''
		called on end of playback
		'''
		printl("", self, "S")
		
		printl("", self, "D")
		args = {}
		args["status"] = "stopped"
		plugins = getPlugins(where=Plugin.INFO_PLAYBACK)
		
		for plugin in plugins:
			printl("plugin.name=" + str(plugin.name), self, "D")
			plugin.fnc(args, flags)
			
		printl("", self, "C")
예제 #8
0
    def notifyEntryStopped(self, flags):
        '''
		called on end of playback
		'''
        printl("", self, "S")

        printl("", self, "D")
        args = {}
        args["status"] = "stopped"
        plugins = getPlugins(where=Plugin.INFO_PLAYBACK)

        for plugin in plugins:
            printl("plugin.name=" + str(plugin.name), self, "D")
            plugin.fnc(args, flags)

        printl("", self, "C")