X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/eded0db3bc821a1633da2fd33cf0019407dd1089..5d441513d7c81c7e52399801dd34c97480f4e136:/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py 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()