[mythtv-commits] Ticket #8722: xmltvparser uses incorrect date format for "previously-shown"
MythTV
mythtv at cvs.mythtv.org
Wed Aug 4 03:10:54 UTC 2010
#8722: xmltvparser uses incorrect date format for "previously-shown"
---------------------------------------+------------------------------------
Reporter: anonymous | Owner: stuartm
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - Mythfilldatabase | Version: Trunk Head
Severity: medium | Mlocked: 0
---------------------------------------+------------------------------------
xmltvparser.cpp currently has:
{{{
411 else if (info.tagName() == "previously-shown")
412 {
413 pginfo->previouslyshown = true;
414
415 QString prevdate = info.attribute("start");
416 pginfo->originalairdate =
417 QDate::fromString(prevdate, Qt::ISODate);
418 }
}}}
However, the date format for previously-shown given at the xmltv wiki (
http://wiki.xmltv.org/index.php/XMLTVFormat ) seems to imply that the
string is not in ISODate format but rather XMLTVDate (yyyymmddtttttt)
format. Propose changing code to:
{{{
411 else if (info.tagName() == "previously-shown")
412 {
413 pginfo->previouslyshown = true;
414
415 QString prevdate = info.attribute("start");
415 QDateTime originalairdatetime;
415 fromXMLTVDate(prevdate,originalairdatetime);
416 pginfo->originalairdate =
417 originalairdatetime.date();
418 }
}}}
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/8722>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list