[mythtv-commits] Ticket #2566: Mythburn.py chanid and starttime mixed-up when file details changed in job-file
MythTV
mythtv at cvs.mythtv.org
Wed Oct 11 21:25:23 UTC 2006
#2566: Mythburn.py chanid and starttime mixed-up when file details changed in job-
file
-------------------------------+--------------------------------------------
Reporter: ojveal at mit.jyu.fi | Owner: paulh
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mytharchive | Version: 0.20
Severity: medium |
-------------------------------+--------------------------------------------
Line 800 of mythburn.py:
{{{
recdate=time.strptime( "%s" % record[1],"%Y-%m-%d %H:%M:%S")
}}}
throws !ValueError (when file details changed in !MythArchive):
{{{
Traceback (most recent call last):
File "mythburn.py", line 3493, in ?
processJob(job)
File "mythburn.py", line 3257, in processJob
preProcessFile(node,folder)
File "mythburn.py", line 1132, in preProcessFile
getFileInformation(file, os.path.join(folder, "info.xml"))
File "mythburn.py", line 842, in getFileInformation
recdate=time.strptime( "%s" % record[1],"%Y-%m-%d %H:%M:%S")
File "/usr/lib/python2.4/_strptime.py", line 293, in strptime
raise ValueError("time data did not match format: data=%s fmt=%s" %
ValueError: time data did not match format: data=1511 fmt=%Y-%m-%d
%H:%M:%S
}}}
It seems that chanid and starttime have been mixed up, record![0] should
contain the starttime, and record![1] contains chanid.
If so, in line 795
{{{
node = infoDOM.createElement("chanid")
node.appendChild(infoDOM.createTextNode("%s" % record[0]))
}}}
record![0] is probably also incorrect.
in line 806 record is used correctly:
{{{
starttime = record[0]
chanid = record[1]
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/2566>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list