Skip to content

Commit

Permalink
Properly set job type in fromProgram and fromRecorded methods.
Browse files Browse the repository at this point in the history
Signed-off-by: Raymond Wagner <rwagner@mythtv.org>
  • Loading branch information
dragonian authored and wagnerrp committed Jul 9, 2012
1 parent 640963b commit 868a566
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mythtv/bindings/python/MythTV/dataheap.py
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 868a566

Please sign in to comment.