1 from Plugins.Plugin import PluginDescriptor
3 def main(session, **kwargs):
6 #project = DVDProject.DVDProject()
7 #project.addService(service)
8 return session.open(TitleList.TitleList)
10 def main_add(session, service, **kwargs):
11 dvdburn = main(session, **kwargs)
12 dvdburn.selectedSource(service)
14 def Plugins(**kwargs):
15 descr = _("Burn to DVD")
16 return [PluginDescriptor(name="DVD Burn", description=descr, where = PluginDescriptor.WHERE_MOVIELIST, needsRestart = True, fnc=main_add, icon="dvdburn.png"),
17 PluginDescriptor(name="DVD Burn", description=descr, where = PluginDescriptor.WHERE_PLUGINMENU, needsRestart = True, fnc=main, icon="dvdburn.png") ]