for all non-ts files, display error message when trying to burn to dvd
authorFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 17 Nov 2009 15:08:15 +0000 (16:08 +0100)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Tue, 17 Nov 2009 15:08:15 +0000 (16:08 +0100)
lib/python/Plugins/Extensions/DVDBurn/TitleList.py

index 928a8b8..bb40cc3 100755 (executable)
@@ -188,6 +188,9 @@ class TitleList(Screen, HelpableScreen):
        def selectedSource(self, source):
                if source is None:
                        return None
+               if not source.getPath().endswith(".ts"):
+                       self.session.open(MessageBox,text = _("You can only burn Dreambox recordings!"), type = MessageBox.TYPE_ERROR)
+                       return None
                t = self.project.addService(source)
                try:
                        editor = source.edit