Jump to content


Photo

XMLTV Previously Shown

xmltv guide data new

  • Please log in to reply
16 replies to this topic

#1 jdfisher OFFLINE  

jdfisher

    Advanced Member

  • Members
  • 39 posts
  • Local time: 08:25 AM

Posted 26 November 2016 - 05:48 PM

I have been using Schedules direct for a year now, and am looking into moving toward something free.  I am currently trying to get XMLTV working correctly.  I have used zap2xml to download my wanted guide data to xml (attached), mapped my channels manually, and the information is populated into the guide successfully.  The problem I am running into is what it is marking as new or repeat in the guide, especially repeat without an original air date.

 

 

Looking in the xml

 

<previously-shown start="20161127000000" /> designates a repeat showing with the original air date in the start= attribute

 

But if where I am pulling data from doesn't know the original air date it just comes through as

 

<previously-shown />

 

For the ones that have start= attribute, they are working correctly and it shows repeat in the guide

 

If it doesn't have the start= attribute, then it is showing up as New in the guide

 

New episodes that are designated as <new /> work correctly as far as I can tell

 

Attached Files



#2 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:25 AM

Posted 26 November 2016 - 05:50 PM

Hi, what change are you looking for?



#3 jdfisher OFFLINE  

jdfisher

    Advanced Member

  • Members
  • 39 posts
  • Local time: 08:25 AM

Posted 26 November 2016 - 05:53 PM

For episodes that have just <previously-shown /> without the air date to show as a repeat in the guide.

Sent from my SM-G920V using Tapatalk

#4 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:25 AM

Posted 26 November 2016 - 06:01 PM

I'm not sure that's a safe assumption to make. @denz have you seen that before?



#5 jdfisher OFFLINE  

jdfisher

    Advanced Member

  • Members
  • 39 posts
  • Local time: 08:25 AM

Posted 26 November 2016 - 06:05 PM

In all of what I can find it's correct. A good example of this being an issue is the Simpsons marathon going on on fxx. All of them show as new in the guide.

Sent from my SM-G920V using Tapatalk

#6 jdfisher OFFLINE  

jdfisher

    Advanced Member

  • Members
  • 39 posts
  • Local time: 08:25 AM

Posted 26 November 2016 - 07:08 PM

I have also noticed that none of my recording timers exist anymore.  Am I going to have to redo my series due to the change in guide data?

 

I tested doing a find and replace of <previously-shown /> with <previously-shown start="19690101000000" /> and the repeat data looks correct in the guide.  I can probably script this with my task schedule when running zap2xml if needed.



#7 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:25 AM

Posted 26 November 2016 - 07:15 PM

Well I don't mind supporting that if it's correct I just want to make sure it is first. As far as timers go, yes the timers are associated to programs so if the guide changes the recording schedule will as well.



#8 ebr OFFLINE  

ebr

    Chief Bottle Washer

  • Administrators
  • 48153 posts
  • Local time: 11:25 AM

Posted 26 November 2016 - 08:01 PM

You feel the folks at Schedules Direct didn't earn their $26 providing an entire year of data...?



#9 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 2182 posts
  • Local time: 12:25 AM
  • LocationPerth, Australia

Posted 27 November 2016 - 09:16 AM

If it doesnt have a date that means it is new show and wmc treats it as new . If that is changed than it will make my guide useless and logically thinking the reason it doesnt have a date because it hasnt be shown before.

#10 jdfisher OFFLINE  

jdfisher

    Advanced Member

  • Members
  • 39 posts
  • Local time: 08:25 AM

Posted 27 November 2016 - 10:30 AM

It designates new with <new /> it's that the source doesn't know the original air dates so it doesn't put them in for all episodes.

Sent from my SM-G920V using Tapatalk

#11 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:25 AM

Posted 27 November 2016 - 01:27 PM

Could both of you post a sample episode from your XML so that we can compare? Thanks.

#12 jdfisher OFFLINE  

jdfisher

    Advanced Member

  • Members
  • 39 posts
  • Local time: 08:25 AM

Posted 27 November 2016 - 01:40 PM

Repeat without air date:

	<programme start="20161127233000 -0800" stop="20161128000000 -0800" channel="I87317.labs.zap2it.com">
		<title lang="en">House Hunters International</title>
		<sub-title lang="en">High Above the Cote D&apos;azur</sub-title>
		<desc lang="en">Todd and Jim want to buy a home on the French Rivera.</desc>
		<category lang="en">Series</category>
		<episode-num system="dd_progid">EP00804863.1340</episode-num>
		<video>
			<aspect>16:9</aspect>
			<quality>HDTV</quality>
		</video>
		<previously-shown />
		<subtitles type="teletext" />
		<rating>
			<value>TVG</value>
		</rating>
	</programme>

Repeat with air date:

<programme start="20161128003000 -0800" stop="20161128010000 -0800" channel="I87317.labs.zap2it.com">
		<title lang="en">Island Life</title>
		<sub-title lang="en">Family Time on St. Simons</sub-title>
		<desc lang="en">A couple with five kids wants more quality time together on St. Simons, GA.</desc>
		<date>20161127</date>
		<category lang="en">Series</category>
		<episode-num system="dd_progid">EP02011675.0064</episode-num>
		<video>
			<aspect>16:9</aspect>
			<quality>HDTV</quality>
		</video>
		<previously-shown start="20161127000000" />
		<subtitles type="teletext" />
		<rating>
			<value>TVG</value>
		</rating>
	</programme>

New:

	<programme start="20161128220000 -0800" stop="20161128223000 -0800" channel="I87317.labs.zap2it.com">
		<title lang="en">House Hunters</title>
		<sub-title lang="en">Single Professional Searches for Glam Home in Atlanta</sub-title>
		<desc lang="en">A buyer seeks a house in Atlanta.</desc>
		<date>20161128</date>
		<category lang="en">Series</category>
		<episode-num system="dd_progid">EP00326733.1690</episode-num>
		<video>
			<aspect>16:9</aspect>
			<quality>HDTV</quality>
		</video>
		<new />
		<subtitles type="teletext" />
		<rating>
			<value>TVG</value>
		</rating>
	</programme>


#13 jdfisher OFFLINE  

jdfisher

    Advanced Member

  • Members
  • 39 posts
  • Local time: 08:25 AM

Posted 27 November 2016 - 01:43 PM

You feel the folks at Schedules Direct didn't earn their $26 providing an entire year of data...?

I do, but currently I only have about $11 to my name...



#14 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:25 AM

Posted 27 November 2016 - 02:09 PM

Actually according to the xmltv website it looks like this is valid.

 

We need to look at the results of both <previously-shown as well as <new

<!-- When and where the programme was last shown, if known.  Normally
in TV listings 'repeat' means 'previously shown on this channel', but
if you don't know what channel the old screening was on (but do know
that it happened) then you can omit the 'channel' attribute.
Similarly you can omit the 'start' attribute if you don't know when
the previous transmission was (though you can of course give just the
year, etc.).

The absence of this element does not say for certain that the
programme is brand new and has never been screened anywhere before.
-->
<!ELEMENT previously-shown EMPTY>
<!ATTLIST previously-shown start   CDATA #IMPLIED
                           channel CDATA #IMPLIED >


  • jdfisher likes this

#15 jdfisher OFFLINE  

jdfisher

    Advanced Member

  • Members
  • 39 posts
  • Local time: 08:25 AM

Posted 27 November 2016 - 04:45 PM

I am scripting the find and replace for now. If it gets resolved I will remove it.

Sent from my SM-G920V using Tapatalk

#16 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 2182 posts
  • Local time: 12:25 AM
  • LocationPerth, Australia

Posted 27 November 2016 - 09:45 PM

It looks I was wrong on my xmltv feed the new episodes don't have a previously shown tag but this is from only looking at three new showings.

 

 

 

<programme channel="23" stop="20161128033000 +0000" start="20161128010000 +0000">
<title lang="en">The Morning Show</title>
<desc lang="en">Kylie Gillies and Larry Emdur skip the hard news and present a morning show full of health, lifestyle and fashion advice.(Australia, English)</desc>
<category lang="en">Live</category>
<category lang="en">Variety</category>
<language lang="en">English</language>
<country lang="en">Australia</country>
<episode-num system="icetv">10605-0</episode-num>
<video>
<aspect>16:9</aspect>
</video>
<subtitles type="teletext"/>
<rating system="">
<value>PG</value>
</rating>
</programme>

<programme channel="23" stop="20161128113000 +0000" start="20161128110000 +0000">
<title lang="en">Home And Away</title>
<desc lang="en">This is the chronicle of the fun and games, ups and downs and all other shenanigans the denizens of the beachside town of Summer Bay get up to, day in and day out.(Australia, English)</desc>
<category lang="en">Soap Opera</category>
<language lang="en">English</language>
<country lang="en">Australia</country>
<episode-num system="icetv">73-0</episode-num>
<video>
<aspect>16:9</aspect>
</video>
<subtitles type="teletext"/>
<rating system="">
<value>PG</value>
</rating>
</programme>
 
<programme channel="2391" stop="20161128120000 +0000" start="20161128113000 +0000">
<title lang="en">Science Of Stupid</title>
<sub-title lang="en">Series 1, Episode 1</sub-title>
<desc lang="en">Richard Hammond shows what can go spectacularly wrong when you're paragliding, or riding dirt bikes, and then he shows you the science behind the disaster.(United Kingdom, English)</desc>
<category lang="en">Documentary</category>
<category lang="en">News</category>
<category lang="en">Science & Tech</category>
<language lang="en">English</language>
<country lang="en">United Kingdom</country>
<episode-num system="xmltv_ns">0.0.</episode-num>
<episode-num system="icetv">44934-240145</episode-num>
<video>
<aspect>16:9</aspect>
</video>
<subtitles type="teletext"/>
<rating system="">
<value>M</value>
</rating>
</programme>


#17 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 142356 posts
  • Local time: 11:25 AM

Posted 27 November 2016 - 09:52 PM

Thanks, should be OK then.


  • jdfisher likes this





Also tagged with one or more of these keywords: xmltv, guide data, new

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users