aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
diff options
context:
space:
mode:
authorAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-09-05 21:32:12 +0000
committerAndreas Frisch <andreas.frisch@multimedia-labs.de>2008-09-05 21:32:12 +0000
commitec970c4f4534a4ed6f1f4d930bfb8d56bf5531a9 (patch)
treeb31dc0f06719f783aff2547f8f10bd88519ed079 /lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
parentef2243033f618a4fe3f7bb4c9a1efc763d62f44d (diff)
downloadenigma2-ec970c4f4534a4ed6f1f4d930bfb8d56bf5531a9.tar.gz
enigma2-ec970c4f4534a4ed6f1f4d930bfb8d56bf5531a9.zip
additional service information for DVD menu and fixes
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py')
-rw-r--r--lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py b/lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
index dad16e7e..40aefafb 100644
--- a/lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
+++ b/lib/python/Plugins/Extensions/DVDBurn/DVDTitle.py
@@ -9,15 +9,23 @@ class DVDTitle:
self.inputfile = ""
self.cutlist = [ ]
self.chaptermarks = [ ]
+ self.timeCreate = None
def addService(self, service):
from os import path
from enigma import eServiceCenter, iServiceInformation
+ from ServiceReference import ServiceReference
+ from time import localtime, time
self.source = service
serviceHandler = eServiceCenter.getInstance()
info = serviceHandler.info(service)
self.descr = info and " " + info.getInfoString(service, iServiceInformation.sDescription) or ""
+ sTimeCreate = info.getInfo(service, iServiceInformation.sTimeCreate)
+ if sTimeCreate > 1:
+ self.timeCreate = localtime(sTimeCreate)
+ serviceref = ServiceReference(info.getInfoString(service, iServiceInformation.sServiceref))
self.name = info and info.getName(service) or "Title" + t.descr
+ self.channel = serviceref.getServiceName()
self.inputfile = service.getPath()
self.filesize = path.getsize(self.inputfile)
self.estimatedDiskspace = self.filesize