aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/DVDBurn/TitleList.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-09-15 10:40:30 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-09-15 10:40:30 +0000
commit7b8d03106f28c627bc5bdcd89fe9e60cf48cab88 (patch)
tree0eed898b69f6c536b8e907afba3cc8953f74c03e /lib/python/Plugins/Extensions/DVDBurn/TitleList.py
parenta4cd8d8b1f334557458b62a743d7a1fdab151a45 (diff)
downloadenigma2-7b8d03106f28c627bc5bdcd89fe9e60cf48cab88.tar.gz
enigma2-7b8d03106f28c627bc5bdcd89fe9e60cf48cab88.zip
disallow non-mpeg2 video streams for dvdburn
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/TitleList.py')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/TitleList.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/TitleList.py b/lib/python/Plugins/Extensions/DVDBurn/TitleList.py
index fc4460e3..f4467707 100644
--- a/lib/python/Plugins/Extensions/DVDBurn/TitleList.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/TitleList.py
@@ -134,6 +134,9 @@ class TitleList(Screen):
def removeCurrentTitle(self):
title = self.getCurrentTitle()
+ self.removeTitle(title)
+
+ def removeTitle(self, title):
if title is not None:
self.project.titles.remove(title)
self.updateTitleList()
@@ -218,11 +221,14 @@ class TitleList(Screen):
self.session.openWithCallback(self.titleEditDone, TitleCutter.TitleCutter, t)
def titleEditDone(self, cutlist):
- t = self.current_edit_title
- t.cuesheet = cutlist
- t.produceFinalCuesheet()
- print "title edit of %s done, resulting cutlist:" % (t.source.toString()), t.cutlist, "chaptermarks:", t.chaptermarks
- self.updateTitleList()
+ if cutlist != False:
+ t = self.current_edit_title
+ t.cuesheet = cutlist
+ t.produceFinalCuesheet()
+ self.updateTitleList()
+ else:
+ self.session.open(MessageBox,text = _("The DVD standard doesn't support H.264 (HDTV) video streams!"),type = MessageBox.TYPE_ERROR)
+ self.removeTitle(self.current_edit_title)
def leave(self):
self.close()