aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/DVDBurn/TitleList.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-29 16:57:49 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-10-29 16:57:49 +0000
commit25a66e5ff609eeb03907030f16c408197b646ecc (patch)
treefc3a7a90289bead1518732bb7980dc96d55665aa /lib/python/Plugins/Extensions/DVDBurn/TitleList.py
parent5421ff9c24b05aaa57cdbcf50eedba0edc714cb8 (diff)
downloadenigma2-25a66e5ff609eeb03907030f16c408197b646ecc.tar.gz
enigma2-25a66e5ff609eeb03907030f16c408197b646ecc.zip
allow creating .ISO files. allow burning .ISO images or preauthored dvd structures (e.g. from failed burning attempts) to DVD. allow choice between ISO9660 level 1, ISO9660 version 2 and UDF as file system for data DVDs. new options are available for selection within settings screen. burning dvd from image is available as option in menu.
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/TitleList.py')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/TitleList.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/TitleList.py b/lib/python/Plugins/Extensions/DVDBurn/TitleList.py
index 2c2d16c8..600411ce 100644
--- a/lib/python/Plugins/Extensions/DVDBurn/TitleList.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/TitleList.py
@@ -10,7 +10,6 @@ from Components.ActionMap import HelpableActionMap, ActionMap
from Components.Sources.List import List
from Components.Sources.StaticText import StaticText
from Components.Sources.Progress import Progress
-from Components.FileList import FileList
from Components.Label import Label
from enigma import eListboxPythonMultiContent, gFont, RT_HALIGN_LEFT
from Tools.Directories import resolveFilename, SCOPE_PLUGINS
@@ -78,13 +77,17 @@ class TitleList(Screen, HelpableScreen):
def showMenu(self):
menu = []
- menu.append((_("Burn DVD"), "burn"));
+ if self.project.settings.output.getValue() == "dvd":
+ menu.append((_("Burn DVD"), "burn"));
+ elif self.project.settings.output.getValue() == "iso":
+ menu.append((_("Create DVD-ISO"), "burn"));
menu.append((_("Preview menu"), "previewMenu"));
menu.append((_("DVD media toolbox"), "toolbox"));
menu.append((_("Collection settings"), "settings"));
menu.append((_("Add a new title"), "addtitle"));
menu.append((_("Remove title"), "removetitle"));
menu.append((_("Edit chapters of current title"), "edittitle"));
+ menu.append((_("Burn existing image to DVD"), "burniso"));
menu.append((_("Exit"), "exit"));
self.session.openWithCallback(self.menuCallback, ChoiceBox, title="", list=menu)
@@ -105,6 +108,8 @@ class TitleList(Screen, HelpableScreen):
self.previewMenu()
elif choice[1] == "burn":
self.burnProject()
+ elif choice[1] == "burniso":
+ self.session.openWithCallback(self.burnISO, ProjectSettings.FileBrowser, "image", self.project.settings)
elif choice[1] == "exit":
self.leave()
@@ -201,6 +206,12 @@ class TitleList(Screen, HelpableScreen):
job_manager.in_background = False
self.session.openWithCallback(self.JobViewCB, JobView, job)
+ def burnISO(self, path, scope):
+ job = Process.DVDisoJob(self.project, path)
+ job_manager.AddJob(job)
+ job_manager.in_background = False
+ self.session.openWithCallback(self.JobViewCB, JobView, job)
+
def JobViewCB(self, in_background):
job_manager.in_background = in_background