X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=RecordTimer.py;h=c3b948d24f6e5237510863f2b5f2d004f4f54cfe;hb=edddbb8134523b087f6585868b281e88732d3bc7;hp=aa48415a7babcb1c45467f64f884d922c3ecbc0b;hpb=63fd3a60724b9c03a70ce847955f2aa9facb423f;p=vuplus_dvbapp diff --git a/RecordTimer.py b/RecordTimer.py index aa48415..c3b948d 100644 --- a/RecordTimer.py +++ b/RecordTimer.py @@ -86,9 +86,12 @@ def createTimer(xml): end = int(xml.getAttribute("end")) serviceref = ServiceReference(str(xml.getAttribute("serviceref"))) description = xml.getAttribute("description") + repeated = xml.getAttribute("repeated") epgdata = xml.getAttribute("epgdata") #filename = xml.getAttribute("filename") - return RecordTimerEntry(begin, end, serviceref, epgdata, description) + entry = RecordTimerEntry(begin, end, serviceref, epgdata, description) + entry.repeated = int(repeated) + return entry class RecordTimer(timer.Timer): def __init__(self): @@ -126,6 +129,7 @@ class RecordTimer(timer.Timer): t.setAttribute("begin", str(timer.begin)) t.setAttribute("end", str(timer.end)) t.setAttribute("serviceref", str(timer.service_ref)) + t.setAttribute("repeated", str(timer.repeated)) #t.setAttribute("epgdata", timer.) t.setAttribute("description", timer.description) root_element.appendChild(t)