Merge remote branch 'remotes/origin/bug_319_dvdburnsettings_languagechoices' into...
[enigma2.git] / lib / python / Plugins / Extensions / DVDBurn / plugin.py
1 from Plugins.Plugin import PluginDescriptor
2
3 def main(session, **kwargs):
4         import TitleList
5         import DVDProject
6         #project = DVDProject.DVDProject()
7         #project.addService(service)
8         return session.open(TitleList.TitleList)
9         
10 def main_add(session, service, **kwargs):
11         dvdburn = main(session, **kwargs)
12         dvdburn.selectedSource(service)
13
14 def Plugins(**kwargs):
15         descr = _("Burn to DVD...")
16         return [PluginDescriptor(name="DVD Burn", description=descr, where = PluginDescriptor.WHERE_MOVIELIST, fnc=main_add, icon="dvdburn.png"),
17                 PluginDescriptor(name="DVD Burn", description=descr, where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main, icon="dvdburn.png") ]