allow blanking DVD-RAM media. the burn tool however only writes disc-at-once.
authorFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 17 Nov 2008 09:01:47 +0000 (10:01 +0100)
committerFraxinas <andreas.frisch@multimedia-labs.de>
Mon, 17 Nov 2008 09:01:47 +0000 (10:01 +0100)
lib/python/Plugins/Extensions/DVDBurn/DVDToolbox.py

index 162bf35..b88dbb3 100644 (file)
@@ -89,7 +89,7 @@ class DVDToolbox(Screen):
                for line in mediuminfo.splitlines():
                        if line.find("Mounted Media:") > -1:
                                mediatype = line.rsplit(',',1)[1][1:]
-                               if mediatype.find("RW") > 0:
+                               if mediatype.find("RW") > 0 or mediatype.find("RAM") > 0:
                                        self.formattable = True
                                else:
                                        self.formattable = False
@@ -186,7 +186,7 @@ class DVDformatTask(Task):
                if line.startswith("- media is already formatted"):
                        self.error = self.ERROR_ALREADYFORMATTED
                        self.retryargs = [ "-force" ]
-               if line.startswith("- media is not blank"):
+               if line.startswith("- media is not blank") or line.startswith("  -format=full  to perform full (lengthy) reformat;"):
                        self.error = self.ERROR_ALREADYFORMATTED
                        self.retryargs = [ "-blank" ]
                if line.startswith(":-( mounted media doesn't appear to be"):