Opened 16 years ago
Closed 16 years ago
Last modified 16 years ago
#5612 closed defect (fixed)
bad xmltv parsing of <previously-shown>
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythfilldatabase | Version: | head |
Severity: | low | Keywords: | xmltv |
Cc: | Ticket locked: | no |
Description
mythtv/programs/mythfilldatabase/xmltvparser.cpp does parse the <previously-shown> tag correctly. Current code is:
415 else if (info.tagName() == "previously-shown") 416 { 417 pginfo->previouslyshown = true; 418 419 QString prevdate = getFirstText(info); 420 pginfo->originalairdate = prevdate; 421 }
but according to the latest DTD, which states:
<!ELEMENT previously-shown EMPTY> <!ATTLIST previously-shown start CDATA #IMPLIED channel CDATA #IMPLIED >
the code should probably read:
415 else if (info.tagName() == "previously-shown") 416 { 417 pginfo->previouslyshown = true; 418 419 QString prevdate = info.attribute("start"); 420 pginfo->originalairdate = prevdate; 421 }
Regards, Søren
mythtv/programs/mythfilldatabase/xmltvparser.cpp
does parse the<previously-shown>
tag correctly. Current code is:but according to the latest DTD, which states:
the code should probably read:
Regards, Søren