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
nickk
Silicondust
Posts: 20163
Joined: Tue Jan 13, 2004 9:39 am
x 376

Re: XMLTV guide data

Post by nickk »

colinhiccup wrote: Wed Nov 03, 2021 6:38 pm Does this have a wide roll out?

With a DVR subscription it returns "not subscribed" for me
It is active for all DVR subscribers.

I can check authorization - what is the device ID of your HDHomeRun?

colinhiccup
Posts: 2
Joined: Wed Nov 03, 2021 6:36 pm

Re: XMLTV guide data

Post by colinhiccup »

106087E4

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

Re: XMLTV guide data

Post by nickk »

DVR is active and there is guide for most of your channels. Are you using the latest DeviceAuth from http://106087E4.local/discover.json ?

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

Re: XMLTV guide data

Post by EddieP »

I am getting not subscribed also did something change ? Getting error 400.
Last edited by EddieP on Wed Nov 03, 2021 7:14 pm, edited 1 time in total.

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

Re: XMLTV guide data

Post by nickk »

EddieP wrote: Wed Nov 03, 2021 7:10 pm I am getting not subscribed also did something change ?
Working with my home device.

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

Re: XMLTV guide data

Post by EddieP »

nickk wrote: Wed Nov 03, 2021 7:13 pm
EddieP wrote: Wed Nov 03, 2021 7:10 pm I am getting not subscribed also did something change ?
Working with my home device.
I got it working ...

bwarthen
Posts: 5
Joined: Wed Nov 17, 2021 7:57 pm

Re: XMLTV guide data

Post by bwarthen »

I was able to get this working and get the xml file. I uploaded that to Plex and everything shows as a new airing. Has anyone else seen this? Is there a way to fix this?

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

Re: XMLTV guide data

Post by EddieP »

bwarthen wrote: Wed Nov 17, 2021 8:01 pm I was able to get this working and get the xml file. I uploaded that to Plex and everything shows as a new airing. Has anyone else seen this? Is there a way to fix this?
Yep unfortunately that is the case ... a user at channels DVR wrote a docker to create an XML that changes this.... it can also be used for XMLTV from HdHomeRun.... as they both use the same guide service.

https://github.com/kevdog114/channels-d ... mltv-proxy
https://community.getchannels.com/t/usi ... s/26342/15

bwarthen
Posts: 5
Joined: Wed Nov 17, 2021 7:57 pm

Re: XMLTV guide data

Post by bwarthen »

Thanks for the response. I may do the same and see if there may be any good identifiers in the export and put something together to add the appropriate node.

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

Re: XMLTV guide data

Post by EddieP »

bwarthen wrote: Thu Nov 18, 2021 7:28 am Thanks for the response. I may do the same and see if there may be any good identifiers in the export and put something together to add the appropriate node.
I had to also change the Episode Season in order to use it in EMBY ... had to run it through a script. I really do not think the XMLTV from HDHR sticks to the standards.
#!/usr/bin/env python3
import requests

URL = "http://10.0.0.2:8089/devices/ANY/guide/ ... on=1209600"

tve_xml = requests.get(URL)

xmlOutput = "xmltv_ns.xml"

with open(xmlOutput,"w", encoding="utf8") as fileOut:
for line in tve_xml.text.splitlines():
fileOut.write(line+"\n")
if '<episode-num system="onscreen">' in line:
season_episode = line.replace('<episode-num system="onscreen">','').replace('</episode-num>','')
if "S" in season_episode:
season = ((season_episode.split('S'))[1].split('E'))[0]
episode = ((season_episode.split('S'))[1].split('E'))[1]
fileOut.write(' <episode-num system="xmltv_ns">' + str(int(season)-1) + '.' + str(int(episode)-1) + '.</episode-num>\n')

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

Re: XMLTV guide data

Post by nickk »

If our XMLTV generator is getting something wrong let me know and I will take a look.

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

Re: XMLTV guide data

Post by EddieP »

nickk wrote: Thu Nov 18, 2021 2:43 pm If our XMLTV generator is getting something wrong let me know and I will take a look.
I will try to get a sample of an Episode from your XMLTV and from what others expect.

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

Re: XMLTV guide data

Post by EddieP »

The main Problems is Identifying "New" and Season/Episodes.

Scedules Direct

Code: Select all

<programme start="20211119040000 +0000" stop="20211119050000 +0000" channel="EPG123.20292.schedulesdirect.org">
    <title>Station 19</title>
    <sub-title>Little Girl Blue</sub-title>
    <desc>Station 19 and Station 23 each attempt to celebrate Thanksgiving following the fallout from the neighborhood explosion; the firefighters come together to cook, toast to loved ones they have lost and celebrate the families they have become.</desc>
    <credits>
      <actor role="Andy Herrera">Jaina Lee Ortiz</actor>
      <actor role="Ben Warren">Jason George</actor>
      <actor role="Captain Robert Sullivan">Boris Kodjoe</actor>
      <actor role="Jack Gibson">Grey Damon</actor>
      <actor role="Victoria &quot;Vic&quot; Hughes">Barrett Doss</actor>
      <actor role="Travis Montgomery">Jay Hayden</actor>
      <actor role="Dean Miller">Okieriete Onaodowan</actor>
      <actor role="Maya Bishop">Danielle Savre</actor>
      <actor role="Carina DeLuca">Stefania Spampinato</actor>
      <producer>Shonda Rhimes</producer>
      <producer>Betsy Beers</producer>
      <producer>Krista Vernoff</producer>
      <producer>Paris Barclay</producer>
    </credits>
    <date>20211118</date>
    <category>Series</category>
    <category>Holiday</category>
    <category>Drama</category>
    <category>Action</category>
    <language>en</language>
    <icon src="http://EPEREZ:9009/image/147647e51c8e81c9b1b135fe0bc9815e53f52da8ae371ec26ff2ca1080996c92.jpg" width="240" height="360" />
    <icon src="http://EPEREZ:9009/image/a8fa5d2db86593249ff1604fc9c975f9b22a29fe4fb5fcdee01025914571e1fa.jpg" width="270" height="360" />
    <icon src="http://EPEREZ:9009/image/272139baaa86a4455a7ee98bc9656d50ec4314dad7a63b3adac200f87b54ca15.jpg" width="360" height="270" />
    <icon src="http://EPEREZ:9009/image/d2e3524237089671acd99cdfebc75cd9382acc46cd821aa2d10b48bd7e5bc05f.jpg" width="480" height="270" />
    <episode-num system="dd_progid">EP02867681.0066</episode-num>
    <episode-num system="xmltv_ns">4.5.0/1</episode-num>
    <video>
      <quality>HDTV</quality>
    </video>
    <audio>
      <stereo>dolby digital</stereo>
    </audio>
    <new />
    <subtitles type="teletext" />
    <rating system="USA Parental Rating">
      <value>TV14</value>
    </rating>
    <rating system="VCHIP">
      <value>TV-14</value>
    </rating>
  </programme>

HDHomeRun

Code: Select all

	<programme start="20211119040000 +0000" stop="20211119050000 +0000" channel="US20292.hdhomerun.com">
		<title>Station 19</title>
		<sub-title>Little Girl Blue</sub-title>
		<desc lang="en">Station 19 and Station 23 each attempt to celebrate Thanksgiving following the fallout from the neighborhood explosion; the firefighters come together to cook, toast to loved ones they have lost and celebrate the families they have become.</desc>
		<date>20211118</date>
		<category>Series</category>
		<category>Holiday</category>
		<category>Drama</category>
		<category>Action</category>
		<language>en</language>
		<icon src="http://img.hdhomerun.com/titles/C15027245EN9XRL.jpg" width="360" height="270"/>
		<series-id system="cseries">C15027245EN9XRL</series-id>
		<episode-num system="dd_progid">EP02867681.0066</episode-num>
		<episode-num system="onscreen">S05E06</episode-num>
		<new/>

rpcameron
Posts: 1106
Joined: Fri Mar 25, 2016 9:55 am
x 4

Re: XMLTV guide data

Post by rpcameron »

EddieP wrote: Thu Nov 18, 2021 3:27 pm The main Problems is Identifying "New" and Season/Episodes.

Scedules Direct

Code: Select all

<programme start="20211119040000 +0000" stop="20211119050000 +0000" channel="EPG123.20292.schedulesdirect.org">
    <title>Station 19</title>
    <sub-title>Little Girl Blue</sub-title>
    <desc>Station 19 and Station 23 each attempt to celebrate Thanksgiving following the fallout from the neighborhood explosion; the firefighters come together to cook, toast to loved ones they have lost and celebrate the families they have become.</desc>
    <credits>
      <actor role="Andy Herrera">Jaina Lee Ortiz</actor>
      <actor role="Ben Warren">Jason George</actor>
      <actor role="Captain Robert Sullivan">Boris Kodjoe</actor>
      <actor role="Jack Gibson">Grey Damon</actor>
      <actor role="Victoria &quot;Vic&quot; Hughes">Barrett Doss</actor>
      <actor role="Travis Montgomery">Jay Hayden</actor>
      <actor role="Dean Miller">Okieriete Onaodowan</actor>
      <actor role="Maya Bishop">Danielle Savre</actor>
      <actor role="Carina DeLuca">Stefania Spampinato</actor>
      <producer>Shonda Rhimes</producer>
      <producer>Betsy Beers</producer>
      <producer>Krista Vernoff</producer>
      <producer>Paris Barclay</producer>
    </credits>
    <date>20211118</date>
    <category>Series</category>
    <category>Holiday</category>
    <category>Drama</category>
    <category>Action</category>
    <language>en</language>
    <icon src="http://EPEREZ:9009/image/147647e51c8e81c9b1b135fe0bc9815e53f52da8ae371ec26ff2ca1080996c92.jpg" width="240" height="360" />
    <icon src="http://EPEREZ:9009/image/a8fa5d2db86593249ff1604fc9c975f9b22a29fe4fb5fcdee01025914571e1fa.jpg" width="270" height="360" />
    <icon src="http://EPEREZ:9009/image/272139baaa86a4455a7ee98bc9656d50ec4314dad7a63b3adac200f87b54ca15.jpg" width="360" height="270" />
    <icon src="http://EPEREZ:9009/image/d2e3524237089671acd99cdfebc75cd9382acc46cd821aa2d10b48bd7e5bc05f.jpg" width="480" height="270" />
    <episode-num system="dd_progid">EP02867681.0066</episode-num>
    <episode-num system="xmltv_ns">4.5.0/1</episode-num>
    <video>
      <quality>HDTV</quality>
    </video>
    <audio>
      <stereo>dolby digital</stereo>
    </audio>
    <new />
    <subtitles type="teletext" />
    <rating system="USA Parental Rating">
      <value>TV14</value>
    </rating>
    <rating system="VCHIP">
      <value>TV-14</value>
    </rating>
  </programme>

HDHomeRun

Code: Select all

	<programme start="20211119040000 +0000" stop="20211119050000 +0000" channel="US20292.hdhomerun.com">
		<title>Station 19</title>
		<sub-title>Little Girl Blue</sub-title>
		<desc lang="en">Station 19 and Station 23 each attempt to celebrate Thanksgiving following the fallout from the neighborhood explosion; the firefighters come together to cook, toast to loved ones they have lost and celebrate the families they have become.</desc>
		<date>20211118</date>
		<category>Series</category>
		<category>Holiday</category>
		<category>Drama</category>
		<category>Action</category>
		<language>en</language>
		<icon src="http://img.hdhomerun.com/titles/C15027245EN9XRL.jpg" width="360" height="270"/>
		<series-id system="cseries">C15027245EN9XRL</series-id>
		<episode-num system="dd_progid">EP02867681.0066</episode-num>
		<episode-num system="onscreen">S05E06</episode-num>
		<new/>
I'm confused by your choice for an example. Both show the "New" empty tag, both have the same dd_progid/tmsid for the episode, and the "onscreen" and "xmltv_ns" season/episode numbers match up. Where's the discrepancy?

(Of course, it does show how little data SiliconDust's XMLTV contains in comparison to Schedule Direct's, considering both source the data from Gracenote.)

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

Re: XMLTV guide data

Post by EddieP »

For one thing some do not recognize Season/Episode So I have to run the Python Script posted above for emby. And Plex identifies all recordings as New Without using the Schaefer Docker Image.... also posted above.

Not Recognixed by EMBY ..
<episode-num system="onscreen">S05E06</episode-num>

Plex Everything is New.

Post Reply