X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fpython%2FPlugins%2FExtensions%2FDVDBurn%2FDVDProject.py;fp=lib%2Fpython%2FPlugins%2FExtensions%2FDVDBurn%2FDVDProject.py;h=9a3bd64c6895707cb384c42bb60aa3bfa4a2a54e;hp=96fc380a4162fa0bf1f3c5e624f1e5f054d12a30;hb=5d441513d7c81c7e52399801dd34c97480f4e136;hpb=eded0db3bc821a1633da2fd33cf0019407dd1089 diff --git a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py index 96fc380..9a3bd64 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()