Permalink
Browse files

Properly set job type in fromProgram and fromRecorded methods.

Signed-off-by: Raymond Wagner <rwagner@mythtv.org>
  • Loading branch information...
dragonian authored and wagnerrp committed Jul 9, 2012
1 parent 640963b commit 868a566c1d635be3e60f83438f87b6f21d9f1780
Showing with 2 additions and 0 deletions.
  1. +2 −0 mythtv/bindings/python/MythTV/dataheap.py
@@ -612,6 +612,7 @@ def setStatus(self,status):
def fromRecorded(cls, rec, type, status=None, schedruntime=None,
hostname=None, args=None, flags=None):
job = cls(db=rec._db)
+ job.type = type
job.chanid = rec.chanid
job.starttime = rec.starttime
if status:
@@ -632,6 +633,7 @@ def fromProgram(cls, prog, type, status=None, schedruntime=None,
if prog.rectype != prog.rsRecorded:
raise MythError('Invalid recording type for Job.')
job = cls(db=prog._db)
+ job.type = type
job.chanid = prog.chanid
job.starttime = prog.recstartts
if status:

0 comments on commit 868a566

Please sign in to comment.