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 928a8b821423a912e227d94285ffcb7ebf840e61..bb40cc30b607fe17a1d89e86ccfc3fffd1a9ac80 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