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
EddieP
Posts: 440
Joined: Sat Jun 08, 2019 11:04 am
x 4

Re: XMLTV guide data

Post by EddieP »

garyan2 wrote: Sun Apr 16, 2023 4:46 pm I think you might be missing something, or I am misunderstanding.

Using the client, you can click the text box in the scheduled task and select hdhr2mxf.exe as the source for WMC. HDHR2MXF downloads the xmltv file from SiliconDust, but also creates an mxf file for WMC. So with installing all components, you can create a task in the client to use hdhr2mxf, it will download the xmltv file, create an mxf file, and import into WMC. With the server service running, it will give http access to both the xmltv and mxf file.
I tried the webserver it does not work do you need WMC installed .. I installed the https://www.rejetto.com/hfs/ and got that to serve the lineup.

My Guide data.
C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv

I get this error

Code: Select all

http://127.0.0.1:9009/output/hdhr2mxf.xmltv

Code: Select all

[4/16/2023 5:12:21 PM] /output/hdhr2mxf.xmltv 404 Not Found
Last edited by EddieP on Sun Apr 16, 2023 5:16 pm, edited 3 times in total.

signcarver
Expert
Posts: 11098
Joined: Wed Jan 24, 2007 1:04 am
Device ID: 10A05954 10802091 131B34B7 13231F92 1070A18E 1073ED6F 15300C36
x 40

Re: XMLTV guide data

Post by signcarver »

@garyan2
Any way to implement the http ipv6 discovery or use a config file of addresses? What I am seeing here is post prime devices won't get discovered and it looks like the code is using http discovery and not attempting to reach out to ipv6-api.hdhomerun.com/discover to discover the more modern tuners that use ipv6 (which may be needed for scribe/servio access to data)

garyan2 wrote: Sun Apr 16, 2023 4:46 pm sorry, not really a quote just decided not to pm to see if others also noticed such

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

Re: XMLTV guide data

Post by EddieP »

signcarver wrote: Sun Apr 16, 2023 5:06 pm @garyan2
Any way to implement the http ipv6 discovery or use a config file of addresses? What I am seeing here is post prime devices won't get discovered and it looks like the code is using http discovery and not attempting to reach out to ipv6-api.hdhomerun.com/discover to discover the more modern tuners that use ipv6 (which may be needed for scribe/servio access to data)

garyan2 wrote: Sun Apr 16, 2023 4:46 pm sorry, not really a quote just decided not to pm to see if others also noticed such
It did pickup my Scribe ...

Code: Select all

 Beginning hdhr2mxf update execution. version 1.7.3.0
===============================================================================
Found HDHomeRun CONNECT QUATRO HDHR5-4US (10701381) with firmware 20230403beta1.
Found HDHomeRun CONNECT 4K HDHR5-4K (1080ACCC) with firmware 20230403beta1.
Found HDHomeRun PRIME HDHR3-CC (13147C7B) with firmware 20230403beta1.
Found HDHomeRun PRIME HDHR3-CC (131A192A) with firmware 20230403beta1.
Found HDHomeRun SCRIBE QUATRO HDVR-4US-1TB (152035B1) with firmware 20230403beta1.
Found HDHomeRun RECORD  () with firmware .
HDHomeRun DVR Service is active.
Downloading available 14-day XMLTV file from SiliconDust.
Last edited by EddieP on Sun Apr 16, 2023 5:28 pm, edited 1 time in total.

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

Re: XMLTV guide data

Post by garyan2 »

EddieP wrote: Sun Apr 16, 2023 5:00 pm
garyan2 wrote: Sun Apr 16, 2023 4:46 pm I think you might be missing something, or I am misunderstanding.

Using the client, you can click the text box in the scheduled task and select hdhr2mxf.exe as the source for WMC. HDHR2MXF downloads the xmltv file from SiliconDust, but also creates an mxf file for WMC. So with installing all components, you can create a task in the client to use hdhr2mxf, it will download the xmltv file, create an mxf file, and import into WMC. With the server service running, it will give http access to both the xmltv and mxf file.
I tried the webserver it does not work do you need WMC installed .. I installed the https://www.rejetto.com/hfs/ and got that to serve the lineup.

My Guide data.
C:\ProgramData\GaRyan2\epg123\output\hdhr2mxf.xmltv

I get this error

Code: Select all

http://127.0.0.1:9009/output/hdhr2mxf.xmltv

Code: Select all

[4/16/2023 5:12:21 PM] /output/hdhr2mxf.xmltv 404 Not Found
See this post. viewtopic.php?p=391186#p391186
You will need to ensure the xmltv file is in the proper location with the epg123.xmltv filename.

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

Re: XMLTV guide data

Post by EddieP »

@garyan2
Thanks got it working now.

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

Re: XMLTV guide data

Post by paulsaz »

garyan2 wrote: Sun Apr 16, 2023 4:46 pm I think you might be missing something, or I am misunderstanding.

Using the client, you can click the text box in the scheduled task and select hdhr2mxf.exe as the source for WMC. HDHR2MXF downloads the xmltv file from SiliconDust, but also creates an mxf file for WMC. So with installing all components, you can create a task in the client to use hdhr2mxf, it will download the xmltv file, create an mxf file, and import into WMC. With the server service running, it will give http access to both the xmltv and mxf file.
The client is giving me an error that WMC is not installed and then closing.

I did get it to work by scheduling a task to run that copies the file created from the output folder to my dropbox folder. Using the ip address way did not work for me. But currently everything is working by using my HD home run address http://192.168.1.218/lineup.m3u as the playlist and then using the xmltv file saved to dropbox using a tinyurl link with dl=1.

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

Re: XMLTV guide data

Post by EddieP »

I noticed that when I use this guide Data there are no Actors but when I use guide data from Channels DVR there is .... maybe actors can be added.


Channels DVR XMLTV

Code: Select all

 <programme start="20230424030000 +0000" stop="20230424060000 +0000" channel="2.1">
    <title>American Idol</title>
    <sub-title>612 (Top 20)</sub-title>
    <desc>The contestants return to Hollywood to learn the results of America&#39;s first votes for the top 20.</desc>
    <category>Episode</category>
    <category>Series</category>
    <category>Music</category>
    <category>Competition Reality</category>
    <icon src="https://tmsimg.fancybits.co/assets/p23358853_b_h9_aa.jpg?w=720&amp;h=540"></icon>
    <series-id system="tms">187350</series-id>
    <date>20230423</date>
    <episode-num system="tms">EP005520800756</episode-num>
    <episode-num system="onscreen">S21E13</episode-num>
    <episode-num system="xmltv_ns">20.12.</episode-num>
    <new></new>
    <credits>
      <actor>Katy Perry</actor>
      <actor>Luke Bryan</actor>
      <actor>Lionel Richie</actor>
    </credits>
    <video>
      <quality>HDTV</quality>
    </video>
  </programme>
HDHR XMLTV

Code: Select all

	<programme start="20230424030000 +0000" stop="20230424060000 +0000" channel="US20292.hdhomerun.com">
		<title>American Idol</title>
		<sub-title>612 (Top 20)</sub-title>
		<desc lang="en">The contestants return to Hollywood to learn the results of America's first votes for the top 20; contestants perform in hopes of securing a spot in the top 12; &quot;American Idol&quot; 2022 winner Noah Thompson and runner-up HunterGirl also take the stage.</desc>
		<date>20230423</date>
		<category>Series</category>
		<category>Music</category>
		<category>Competition reality</category>
		<language>en</language>
		<icon src="https://img.hdhomerun.com/titles/C187350EN52HZ.jpg" width="360" height="270"/>
		<series-id system="cseries">C187350EN52HZ</series-id>
		<episode-num system="dd_progid">EP00552080.0756</episode-num>
		<episode-num system="onscreen">S21E13</episode-num>
		<episode-num system="xmltv_ns">20.12.</episode-num>
		<new/>
		<video>
			<quality>HDTV</quality>
		</video>
	</programme>

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

Re: XMLTV guide data

Post by EddieP »

Turned on IPV6 on my router now only get guide data from the Primes using hdhr2mxf

Code: Select all

Microsoft Windows [Version 10.0.19045.2846]
(c) Microsoft Corporation. All rights reserved.


C:\Users\epere>"c:\program files (x86)\epg123\hdhr2mxf.exe" -o c:\programdata\garyan2\epg123\output\epg123.xmltv
===============================================================================
 Beginning hdhr2mxf update execution. version 1.7.3.0
===============================================================================
Found HDHomeRun PRIME HDHR3-CC (13147C7B) with firmware 20230403beta1.
Found HDHomeRun PRIME HDHR3-CC (131A192A) with firmware 20230403beta1.
HDHomeRun DVR Service is active.
Downloading available 14-day XMLTV file from SiliconDust.
Writing the MXF file to "c:\programdata\garyan2\epg123\output\epg123.xmltv"
Generated .mxf file contains 1 lineups, 91 services, 2313 series, 19710 programs, and 0 people with 3450 image links.
Execution time was 00:00:06.5942930

C:\Users\epere>
.

signcarver
Expert
Posts: 11098
Joined: Wed Jan 24, 2007 1:04 am
Device ID: 10A05954 10802091 131B34B7 13231F92 1070A18E 1073ED6F 15300C36
x 40

Re: XMLTV guide data

Post by signcarver »

That is what I was saying/asking before... the hdhr2mxf uses http discovery when it should use broadcast discovery... the issue is that it basically uses the old antiquated address that redirects to the ipv4 discover address, to pull in the others it needs to also retrieve the ipv6 discover address.... note that SD has previously stated their intent to deprecate the http discovery process entirely so it would be a good time to either switch to broadcast discovery, allow a config with tuner ip's or allow such list as a command line parameter.

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

Re: XMLTV guide data

Post by garyan2 »

Sorry, I haven't been following these developments at all, so I didn't know http discovery was being deprecated. I have modified the code to be able to discover IPv6 devices, but it is just a patch by hitting ipv4-api and ipv6-api. Still using http. I haven't seen any direction on the use of broadcast discovery to work with yet, so need to learn that for the final solution.

Code: Select all

[4/25/2023 11:37:02 PM] ===============================================================================
[4/25/2023 11:37:02 PM]  Beginning HDHR2MXF update execution. version 1.7.4.0
[4/25/2023 11:37:02 PM] ===============================================================================
[4/25/2023 11:37:02 PM] [ INFO] Discovered 3 HDHomeRun devices on the network.
[4/25/2023 11:37:02 PM] [ INFO] Discovered HDHomeRun CONNECT HDHR4-2US (10414B48) with firmware 20230323. 
[4/25/2023 11:37:02 PM] [ INFO] Discovered HDHomeRun CONNECT HDHR4-2US (10417180) with firmware 20230323. 
[4/25/2023 11:37:02 PM] [ INFO] Discovered HDHomeRun RECORD version 20221106beta1. 4.007 TB / 13.953 TB
[4/25/2023 11:37:02 PM] [ INFO] HDHomeRun DVR Service is active.
[4/25/2023 11:37:02 PM] [ INFO] Downloading available XMLTV file from SiliconDust.
[4/25/2023 11:37:04 PM] [ INFO] Building schedule entries and programs.
[4/25/2023 11:37:05 PM] [ INFO] Building keyword categories.
[4/25/2023 11:37:05 PM] [ INFO] Completed save of the M3U file to "C:\Temp\hdhr2mxf\output\hdhr2mxf.m3u" (17.464 KB)
[4/25/2023 11:37:05 PM] [ INFO] Completed save of the MXF file to "C:\Temp\hdhr2mxf\output\hdhr2mxf.mxf". (6.027 MB)
[4/25/2023 11:37:05 PM] [ INFO] Generated MXF file contains 35 services, 1081 series, 1367 seasons, 10191 programs, 15198 schedule entries, and 0 people with 1505 image links.
[4/25/2023 11:37:05 PM] [ INFO] Completed save of the XMLTV file to "C:\Temp\hdhr2mxf\output\hdhr2mxf.xmltv". (11.667 MB)
[4/25/2023 11:37:05 PM] [ INFO] Generated XMLTV file contains 35 channels and 15198 programs.
[4/25/2023 11:37:05 PM] [ INFO] HDHR2MXF update execution time was 00:00:02.9191515.
If you want to give the beta version a go, you can download here. Let me know if it works.

emveepee
Posts: 159
Joined: Sun Nov 16, 2014 3:35 pm
x 4

Re: XMLTV guide data

Post by emveepee »

They did give direction in this thread viewtopic.php?t=77340 although I don't know if they will have an account based solution by early 2024.

Martin

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

Re: XMLTV guide data

Post by EddieP »

garyan2 wrote: Tue Apr 25, 2023 11:50 pm Sorry, I haven't been following these developments at all, so I didn't know http discovery was being deprecated. I have modified the code to be able to discover IPv6 devices, but it is just a patch by hitting ipv4-api and ipv6-api. Still using http. I haven't seen any direction on the use of broadcast discovery to work with yet, so need to learn that for the final solution.

Code: Select all

[4/25/2023 11:37:02 PM] ===============================================================================
[4/25/2023 11:37:02 PM]  Beginning HDHR2MXF update execution. version 1.7.4.0
[4/25/2023 11:37:02 PM] ===============================================================================
[4/25/2023 11:37:02 PM] [ INFO] Discovered 3 HDHomeRun devices on the network.
[4/25/2023 11:37:02 PM] [ INFO] Discovered HDHomeRun CONNECT HDHR4-2US (10414B48) with firmware 20230323. 
[4/25/2023 11:37:02 PM] [ INFO] Discovered HDHomeRun CONNECT HDHR4-2US (10417180) with firmware 20230323. 
[4/25/2023 11:37:02 PM] [ INFO] Discovered HDHomeRun RECORD version 20221106beta1. 4.007 TB / 13.953 TB
[4/25/2023 11:37:02 PM] [ INFO] HDHomeRun DVR Service is active.
[4/25/2023 11:37:02 PM] [ INFO] Downloading available XMLTV file from SiliconDust.
[4/25/2023 11:37:04 PM] [ INFO] Building schedule entries and programs.
[4/25/2023 11:37:05 PM] [ INFO] Building keyword categories.
[4/25/2023 11:37:05 PM] [ INFO] Completed save of the M3U file to "C:\Temp\hdhr2mxf\output\hdhr2mxf.m3u" (17.464 KB)
[4/25/2023 11:37:05 PM] [ INFO] Completed save of the MXF file to "C:\Temp\hdhr2mxf\output\hdhr2mxf.mxf". (6.027 MB)
[4/25/2023 11:37:05 PM] [ INFO] Generated MXF file contains 35 services, 1081 series, 1367 seasons, 10191 programs, 15198 schedule entries, and 0 people with 1505 image links.
[4/25/2023 11:37:05 PM] [ INFO] Completed save of the XMLTV file to "C:\Temp\hdhr2mxf\output\hdhr2mxf.xmltv". (11.667 MB)
[4/25/2023 11:37:05 PM] [ INFO] Generated XMLTV file contains 35 channels and 15198 programs.
[4/25/2023 11:37:05 PM] [ INFO] HDHR2MXF update execution time was 00:00:02.9191515.
If you want to give the beta version a go, you can download here. Let me know if it works.
The Beta Worked ...

Code: Select all

[4/26/2023 6:20:01 AM] ===============================================================================
[4/26/2023 6:20:01 AM]  Beginning HDHR2MXF update execution. version 1.7.4.0
[4/26/2023 6:20:01 AM] ===============================================================================
[4/26/2023 6:20:02 AM] [ INFO] Discovered 6 HDHomeRun devices on the network.
[4/26/2023 6:20:02 AM] [ INFO] Discovered HDHomeRun PRIME HDHR3-CC (13147C7B) with firmware 20230403beta1.
[4/26/2023 6:20:02 AM] [ INFO] Discovered HDHomeRun PRIME HDHR3-CC (131A192A) with firmware 20230403beta1.
[4/26/2023 6:20:02 AM] [ INFO] Discovered HDHomeRun CONNECT QUATRO HDHR5-4US (10701381) with firmware 20230403beta1.
[4/26/2023 6:20:02 AM] [ INFO] Discovered HDHomeRun CONNECT 4K HDHR5-4K (1080ACCC) with firmware 20230403beta1.
[4/26/2023 6:20:02 AM] [ INFO] Discovered HDHomeRun SCRIBE QUATRO HDVR-4US-1TB (152035B1) with firmware 20230403beta1. 910.620 GB / 931.057 GB
[4/26/2023 6:20:03 AM] [ INFO] Discovered HDHomeRun RECORD version 20230403beta1. 8.568 TB / 9.070 TB
[4/26/2023 6:20:03 AM] [ INFO] HDHomeRun DVR Service is active.
[4/26/2023 6:20:03 AM] [ INFO] Downloading available XMLTV file from SiliconDust.
[4/26/2023 6:20:09 AM] [ INFO] Building schedule entries and programs.

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

Re: XMLTV guide data

Post by garyan2 »

If anyone wants to try the latest beta for hdhr2mxf, you can download it here.

This version uses UDP discovery to find devices on the network. It also allows a switch to target specific addresses if needed.

Code: Select all

HDHR2MXF [-IP [addresses]] [-NOLOGOS]

-IP         Discovers HDHomeRun devices at specific addresses.
addresses   Comma delimited list of IP addresses to devices.
            Include port numbers as needed (RECORD).
            Example: 192.168.1.54,192.168.1.74:50000

-NOLOGOS    Resulting files do not include links to station logos.
EDIT: I currently allow up to 400ms on each network interface to get broadcast responses. I'd be interested to know if this is enough time on all the various network topologies out there.

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

Re: XMLTV guide data

Post by paulsaz »

garyan2 wrote: Tue May 02, 2023 8:19 pm If anyone wants to try the latest beta for hdhr2mxf, you can download it here.

This version uses UDP discovery to find devices on the network. It also allows a switch to target specific addresses if needed.

Code: Select all

HDHR2MXF [-IP [addresses]] [-NOLOGOS]

-IP         Discovers HDHomeRun devices at specific addresses.
addresses   Comma delimited list of IP addresses to devices.
            Include port numbers as needed (RECORD).
            Example: 192.168.1.54,192.168.1.74:50000

-NOLOGOS    Resulting files do not include links to station logos.
EDIT: I currently allow up to 400ms on each network interface to get broadcast responses. I'd be interested to know if this is enough time on all the various network topologies out there.
Thanks for adding the m3u file in the beta. One question is there a way to combine the channels in to one playlist if you are using 2 or more HD Homerun tuners?

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

Re: XMLTV guide data

Post by garyan2 »

No. M3U does not support combining streams/links for a channel. That is why, though I combine all tuners in a single m3u file, they are in different groups based on tuner ID.

Post Reply