diff options
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/DVDProject.py')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDBurn/DVDProject.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py new file mode 100644 index 00000000..e7876e41 --- /dev/null +++ b/lib/python/Plugins/Extensions/DVDBurn/DVDProject.py @@ -0,0 +1,20 @@ +class DVDProject: + def __init__(self): + self.titles = [ ] + self.target = None + self.name = _("New DVD") + + def addService(self, service): + import DVDTitle + t = DVDTitle.DVDTitle() + t.source = service + + from enigma import eServiceCenter, iServiceInformation + serviceHandler = eServiceCenter.getInstance() + + info = serviceHandler.info(service) + descr = info and " " + info.getInfoString(service, iServiceInformation.sDescription) or "" + t.name = info and info.getName(service) or "Title" + descr + + self.titles.append(t) + return t |
