Code: Select all
<programme start="20230318210000 +0000" stop="20230318230000 +0000" channel="US105723.hdhomerun.com">
<title>The Last Cowboy</title>
<desc lang="en">A young woman (Jennie Garth) and her estranged father must work together to salvage her late grandfather's cattle ranch. (3.0/4.0)</desc>
<date>2003</date>
<category>Movie</category>
<category>TV Movie</category>
<category>Drama</category>
<category>Western</category>
<language>en</language>
<icon src="https://img.hdhomerun.com/titles/MV001309840000.jpg" width="360" height="270"/>
<icon src="https://img.hdhomerun.com/posters/MV001309840000.jpg" width="240" height="360"/>
<star-rating>
<value>3.0/4.0</value>
</star-rating>
<previously-shown/>
<video>
<quality>HDTV</quality>
</video>
</programme>
Code: Select all
// Special case: the series-id tag will typically be qualified with system=cseries, but some items like Movies (programtype MV) will
// not be qualified with that attribute. Try system=cseries first, then use any series-id node
case xmltv_vtab_columns::seriesid:
node = xmlTextReaderGetChildElementWithAttribute(xmltvcursor->reader, BAD_CAST("series-id"), BAD_CAST("system"), BAD_CAST("cseries"));
if(node == nullptr) node = xmlTextReaderGetChildElement(xmltvcursor->reader, BAD_CAST("series-id"));
if(node != nullptr) sqlite3_result_text(context, reinterpret_cast<char*>(xmlNodeGetContent(node)), -1, xmlFree);
break;
Thanks!!