From 65f1464c0852068d8a60e07e02da6a892d45578b Mon Sep 17 00:00:00 2001 From: Fraxinas Date: Tue, 17 Nov 2009 16:08:15 +0100 Subject: [PATCH] for all non-ts files, display error message when trying to burn to dvd --- lib/python/Plugins/Extensions/DVDBurn/TitleList.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/python/Plugins/Extensions/DVDBurn/TitleList.py b/lib/python/Plugins/Extensions/DVDBurn/TitleList.py index 928a8b82..bb40cc30 100755 --- a/lib/python/Plugins/Extensions/DVDBurn/TitleList.py +++ b/lib/python/Plugins/Extensions/DVDBurn/TitleList.py @@ -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 -- 2.30.2