aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-09-26 14:57:54 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-09-26 14:57:54 +0000
commit268af62d659bc277d4ee5514ce523cc6d4363c92 (patch)
tree22d04f4f0e1acc9f7209808508fe21c39f454f1a /lib/python/Plugins
parenta6dfff23d0d29b636120a3e6fdd845fb2f4117b4 (diff)
downloadenigma2-268af62d659bc277d4ee5514ce523cc6d4363c92.tar.gz
enigma2-268af62d659bc277d4ee5514ce523cc6d4363c92.zip
add DVDBurn to Plugin Menu
Diffstat (limited to 'lib/python/Plugins')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/plugin.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/plugin.py b/lib/python/Plugins/Extensions/DVDBurn/plugin.py
index 8e0d7433..b658d804 100644
--- a/lib/python/Plugins/Extensions/DVDBurn/plugin.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/plugin.py
@@ -1,13 +1,16 @@
from Plugins.Plugin import PluginDescriptor
-def main(session, service, **kwargs):
+def main(session, **kwargs):
import TitleList
import DVDProject
#project = DVDProject.DVDProject()
#project.addService(service)
- burner = session.open(TitleList.TitleList)
- burner.selectedSource(service)
+ return session.open(TitleList.TitleList)
+def main_add(session, service, **kwargs):
+ dvdburn = main(session, **kwargs)
+ dvdburn.selectedSource(service)
def Plugins(**kwargs):
- return PluginDescriptor(name="DVD Tool", description=_("Burn to DVD..."), where = PluginDescriptor.WHERE_MOVIELIST, fnc=main)
+ return [PluginDescriptor(name="DVD Burn", description=_("Burn to DVD..."), where = PluginDescriptor.WHERE_MOVIELIST, fnc=main_add),
+ PluginDescriptor(name="DVD Burn", description=_("Burn to DVD..."), where = PluginDescriptor.WHERE_PLUGINMENU, fnc=main) ]