aboutsummaryrefslogtreecommitdiff
path: root/RecordTimer.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-05-20 19:32:58 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-05-20 19:32:58 +0000
commit094b454c7e3b86cdcff697bb68cd367e53ba9e8e (patch)
tree50c57caa0d77620ff99599664659bbf8ca9a3fc4 /RecordTimer.py
parent11b08a91409fb5902b56d3106760d51e21fcf0e0 (diff)
downloadenigma2-094b454c7e3b86cdcff697bb68cd367e53ba9e8e.tar.gz
enigma2-094b454c7e3b86cdcff697bb68cd367e53ba9e8e.zip
- add description for timer entries
Diffstat (limited to 'RecordTimer.py')
-rw-r--r--RecordTimer.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/RecordTimer.py b/RecordTimer.py
index 0d3d53d8..37208ddc 100644
--- a/RecordTimer.py
+++ b/RecordTimer.py
@@ -10,7 +10,7 @@ from Tools.XMLTools import elementsWithTag
from ServiceReference import ServiceReference
class RecordTimerEntry(TimerEntry):
- def __init__(self, begin, end, serviceref, epg):
+ def __init__(self, begin, end, serviceref, epg, description):
TimerEntry.__init__(self, int(begin), int(end))
assert isinstance(serviceref, ServiceReference)
@@ -19,6 +19,7 @@ class RecordTimerEntry(TimerEntry):
print self.service_ref.getServiceName()
self.epg_data = epg
+ self.description = description
self.timer = None
self.record_service = None
@@ -55,9 +56,10 @@ def createTimer(xml):
begin = int(xml.getAttribute("begin"))
end = int(xml.getAttribute("end"))
serviceref = ServiceReference(str(xml.getAttribute("serviceref")))
+ description = xml.getAttribute("description")
epgdata = xml.getAttribute("epgdata")
#filename = xml.getAttribute("filename")
- return RecordTimerEntry(begin, end, serviceref, epgdata)
+ return RecordTimerEntry(begin, end, serviceref, epgdata, description)
class RecordTimer(Timer):
def __init__(self):
@@ -93,6 +95,7 @@ class RecordTimer(Timer):
t.setAttribute("end", str(timer.end))
t.setAttribute("serviceref", str(timer.service_ref))
#t.setAttribute("epgdata", timer.)
+ t.setAttribute("description", timer.description)
root_element.appendChild(t)
t = doc.createTextNode("\n")
root_element.appendChild(t)