XMLTV guide data

Want to write your own code to work with a HDHomeRun or work with the HDHomeRun DVR? We are happy to help with concepts, APIs, best practices.
Post Reply
djp952
Posts: 1619
Joined: Wed Oct 01, 2008 8:46 pm
Device ID: 131EB7F7;131ED0E0
Location: Elkridge, MD USA
x 24

Re: XMLTV guide data

Post by djp952 »

Nick, there no longer seems to be an attribute that contains the HDHomeRun Series ID for movies anymore:

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>
I don't have any old XML lying around, but in my code I noted that while movies didn't have a system="cseries" attribute, there was a series-id element present for movies that could be used:

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;
I can get it from the icon URL push come to shove, but that seems kind of hacky. Can a series-id element for movies be restored?

Thanks!!

nickk
Silicondust
Posts: 20163
Joined: Tue Jan 13, 2004 9:39 am
x 376

Re: XMLTV guide data

Post by nickk »

Done.

garyan2
Posts: 64
Joined: Sun Aug 19, 2018 9:36 am
x 4
Contact:

Re: XMLTV guide data

Post by garyan2 »

For this movie issue, hdhr2mxf only pays attention to the episode-num system "ddprog_id" since it is defined in the xmltv.dtd whereas system_id element is not. So I'm still broken on my end. Is it possible to restore ddprog_id?

nickk
Silicondust
Posts: 20163
Joined: Tue Jan 13, 2004 9:39 am
x 376

Re: XMLTV guide data

Post by nickk »

garyan2 wrote: Mon Mar 27, 2023 9:31 am For this movie issue, hdhr2mxf only pays attention to the episode-num system "ddprog_id" since it is defined in the xmltv.dtd whereas system_id element is not. So I'm still broken on my end. Is it possible to restore ddprog_id?
Done.

garyan2
Posts: 64
Joined: Sun Aug 19, 2018 9:36 am
x 4
Contact:

Re: XMLTV guide data

Post by garyan2 »

Awesome. Thank you!

nickk
Silicondust
Posts: 20163
Joined: Tue Jan 13, 2004 9:39 am
x 376

Re: XMLTV guide data

Post by nickk »

AU and NZ - guide names have been updated. In particular AU no longer has a cryptic location/variant suffix on the guide name.

Nick

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

"If you have more than one HDHomeRun unit pull the DeviceAuth from each and concatenate them together."

Can you give me an example of what the entry would be for a Quattro and a 4K Flex to work with TiviMate?

My current entry is https://api.hdhomerun.com/api/xmltv?DeviceAuth=***************

which works fine but I would like to use both tuners.

nickk
Silicondust
Posts: 20163
Joined: Tue Jan 13, 2004 9:39 am
x 376

Re: XMLTV guide data

Post by nickk »

If your first HDHomeRun has a device auth of 12345678901234567890 and your second HDHomeRun has a device auth of ABCDEFGHIJABCDEFGHIJ send DeviceAuth=12345678901234567890ABCDEFGHIJABCDEFGHIJ

ie join the strings together into one long string.

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

nickk wrote: Mon Apr 10, 2023 12:55 pm If your first HDHomeRun has a device auth of 12345678901234567890 and your second HDHomeRun has a device auth of ABCDEFGHIJABCDEFGHIJ send DeviceAuth=12345678901234567890ABCDEFGHIJABCDEFGHIJ

ie join the strings together into one long string.
Thanks, that worked great. This is so much easier than manually creating the xmltv file and then using epg123 with Schudules Direct for the guide, and then upload it to dropbox.

Online
EddieP
Posts: 440
Joined: Sat Jun 08, 2019 11:04 am
x 4

Re: XMLTV guide data

Post by EddieP »

paulsaz wrote: Mon Apr 10, 2023 7:00 pm
nickk wrote: Mon Apr 10, 2023 12:55 pm If your first HDHomeRun has a device auth of 12345678901234567890 and your second HDHomeRun has a device auth of ABCDEFGHIJABCDEFGHIJ send DeviceAuth=12345678901234567890ABCDEFGHIJABCDEFGHIJ

ie join the strings together into one long string.
Thanks, that worked great. This is so much easier than manually creating the xmltv file and then using epg123 with Schudules Direct for the guide, and then upload it to dropbox.
If you have epg123 you can just run ... hdhr2mxf.exe (HDHR2MXF Update) to create the XMLTV from the HDHR units.

It will put it here ... C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

I'm not the best at this. Can you explain how to use the HD home run data with epg123? My Schedule Direct subscription ends in May. I've been using epg123 to run daily with SD data and export that to a Dropbox file.

Online
EddieP
Posts: 440
Joined: Sat Jun 08, 2019 11:04 am
x 4

Re: XMLTV guide data

Post by EddieP »

paulsaz wrote: Tue Apr 11, 2023 8:23 pm I'm not the best at this. Can you explain how to use the HD home run data with epg123? My Schedule Direct subscription ends in May. I've been using epg123 to run daily with SD data and export that to a Dropbox file.
When you Install epg123 it gives you the option to also Install HDHR2MXF if you did not click that option try re-install of epg123. Then you can run it. It will create C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv that you can copy to anywhere.

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

EddieP wrote: Wed Apr 12, 2023 5:58 am
paulsaz wrote: Tue Apr 11, 2023 8:23 pm I'm not the best at this. Can you explain how to use the HD home run data with epg123? My Schedule Direct subscription ends in May. I've been using epg123 to run daily with SD data and export that to a Dropbox file.
When you Install epg123 it gives you the option to also Install HDHR2MXF if you did not click that option try re-install of epg123. Then you can run it. It will create C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv that you can copy to anywhere.

I'll give that a try. Also when I do run epg123, it gives a warning about not finding MCE, anyway to ge rid of this.

paulsaz
Posts: 94
Joined: Tue Jun 28, 2011 10:04 am
x 1

Re: XMLTV guide data

Post by paulsaz »

EddieP wrote: Wed Apr 12, 2023 5:58 am
paulsaz wrote: Tue Apr 11, 2023 8:23 pm I'm not the best at this. Can you explain how to use the HD home run data with epg123? My Schedule Direct subscription ends in May. I've been using epg123 to run daily with SD data and export that to a Dropbox file.
When you Install epg123 it gives you the option to also Install HDHR2MXF if you did not click that option try re-install of epg123. Then you can run it. It will create C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv that you can copy to anywhere.
Got this error in the log when I ran the hdhr2mxf.exe

[4/12/2023 10:29:09 AM] [ INFO] HDHomeRun DVR Service is active.
[4/12/2023 10:29:09 AM] [ INFO] Downloading available 14-day XMLTV file from SiliconDust.
[4/12/2023 10:29:13 AM] [ INFO] Writing the MXF file to "C:\ProgramData\GaRyan2\epg123\output\epg123.mxf"
[4/12/2023 10:29:13 AM] [ERROR] Exception Thrown:
[4/12/2023 10:29:13 AM] [ERROR] The system cannot find the file specified
[4/12/2023 10:29:13 AM] [ERROR] at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at hdhr2mxf.Program.ImportMxfStream()
at hdhr2mxf.Program.Main(String[] args)
[4/12/2023 10:29:13 AM] [ INFO] Generated .mxf file contains 2 lineups, 65 services, 1680 series, 12586 programs, and 0 people with 2102 image links.
[4/12/2023 10:29:13 AM] [ INFO] Execution time was 00:00:04.3316589

Online
EddieP
Posts: 440
Joined: Sat Jun 08, 2019 11:04 am
x 4

Re: XMLTV guide data

Post by EddieP »

I do not get any of the errors you posted are you sure you are running the latest epg123.

Post Reply