correctly parse output of new epopen command
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>
Mon, 27 Oct 2008 15:34:19 +0000 (15:34 +0000)
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>
Mon, 27 Oct 2008 15:34:19 +0000 (15:34 +0000)
lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py

index 32666af..0c37512 100644 (file)
@@ -86,7 +86,7 @@ class DVDToolbox(Screen):
                mediatype = ""
                for line in mediuminfo.splitlines():
                        if line.find("Mounted Media:") > -1:
-                               mediatype = line.rsplit(',',1)[1][1:-1]
+                               mediatype = line.rsplit(',',1)[1][1:]
                                if mediatype.find("RW") > 0:
                                        self.formattable = True
                                else:
@@ -115,7 +115,7 @@ class DVDToolbox(Screen):
                                        if used:
                                                used = capacity-used
                                        print "[free blocks] capacity=%d, used=%d" % (capacity, used)
-                       infotext += line
+                       infotext += line+'\n'
                self["details"].setText(infotext)
                if self.formattable:
                        self["key_yellow"].text = _("Format")