change disc size determination and tweak dual layer growisofs arguments
[enigma2.git] / lib / python / Plugins / Extensions / DVDBurn / DVDProject.py
index 96fc380..9a3bd64 100644 (file)
@@ -18,6 +18,8 @@ class ConfigFilename(ConfigText):
                return ("mtext"[1-selected:], filename, mark)
        
 class DVDProject:
+       MAX_SL = 4370
+       MAX_DL = 7950
        def __init__(self):
                self.titles = [ ]
                self.target = None
@@ -140,6 +142,14 @@ class DVDProject:
                        return False
                return True
 
+       def getSize(self):
+               totalsize = 0
+               for title in self.titles:
+                       totalsize += title.estimatedDiskspace
+               return totalsize
+
+       size = property(getSize)
+
 class MenuTemplate(DVDProject):
        def __init__(self):
                self.settings = ConfigSubsection()