aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2009-07-29 10:24:08 +0200
committerFraxinas <andreas.frisch@multimedia-labs.de>2009-07-29 10:24:08 +0200
commit5d441513d7c81c7e52399801dd34c97480f4e136 (patch)
tree565c0e92a23b4ba2f574521e99749fe2c2c5326c /lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
parenteded0db3bc821a1633da2fd33cf0019407dd1089 (diff)
downloadenigma2-5d441513d7c81c7e52399801dd34c97480f4e136.tar.gz
enigma2-5d441513d7c81c7e52399801dd34c97480f4e136.zip
change disc size determination and tweak dual layer growisofs arguments
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/DVDProject.py')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/DVDProject.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
index 96fc380a..9a3bd64c 100644
--- a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py
@@ -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()