High Definition Tag

Discussion of Version 3 and developing lua grabbers
Post Reply
benryder
Posts: 4
Joined: Thu Apr 01, 2010 6:34 pm

High Definition Tag

Post by benryder »

Hello Alan,

I'm not sure if his is something you can change, if not maybe you'll be able to point me in the right direction.

My current setup is using TV Source v3 for Windows Media Center. It works great.

I use XMLTV Gui to grab TV Listings from Digiguide (I guess using DG2XML somewhere along the line). The question I have is regarding High Definition.

Within Digiguide if I hover over a programme that is in High Definition it says 'High Definiton' along with 'Wdescreen, Subtitles, Dolby Digital 5.1, the year it was released, its BBFC classification and how many stars it has. However in the XML generated it doesn't list Widescreen, Subtitles, Dolby Digital 5.1 and most importantly HIgh Definition.

Is there anyway to remedy this? My guess is that it has something to do with the strings.dat but I wouldn't know what strings to add in?

Without it listing the programme as HD, TV Source/Media Centre doesn't list that programme as in HD. Not a major problem, but it would be useful to get resolved.

I hope you can help,


Thank you!

Ben.
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: High Definition Tag

Post by alanbirtles »

If you open the url that xmltv is downloading from in your browser can you see the tags there?
starfire
Posts: 7
Joined: Wed Sep 01, 2010 9:36 pm

Re: High Definition Tag

Post by starfire »

Hi,

Just to follow on with this I am using the latest 3.13.01 with Digiguide grabber and would like the HDTV flag if possible?

When I used the DG2XML grabber it produced XML like this for a HD program:-
<programme
channel = "998"
channel2 = "2452"
start = "20100825160000 +0000"
stop = "20100825170000 +0000">
<title>Antiques Roadshow</title>
<desc>Fiona Bruce and the team travel to the Bishop's Palace in Wells, Somerset. Among the objects under scrutiny are one of the oldest objects ever seen on the Roadshow, a painting by Rolf Harris's grandfather, and a plate reputedly found in Captain Scott's tent on the ill-fated Antarctic expedition.</desc>
<category>Special Interest</category>
<length units = "minutes">60</length>
<sub-title/>
<audio>
<stereo>Stereo</stereo>
</audio>
<previously-shown/>
<video>
<aspect>16:9</aspect>
</video>
<video>
<quality>HDTV</quality>
</video>
<subtitles type = "teletext"/>
<star-rating>
<value>4/5</value>
</star-rating>
<credits/>
</programme>

I tried opening the URL that XMLTV GUI displayed during the Digiguide grab but it made no sense to me.

Any ideas how to add this HDTV flag to XMLTV GUI?
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: High Definition Tag

Post by alanbirtles »

edit libzxmltv_parse.lua
find

Code: Select all

			if tag.Children["miscellaneous"] then
				local miscTag = tag.Children["miscellaneous"][1].Data 
and after it put

Code: Select all

print(miscTag)
Once you have found what the HD tag looks like you can add a new line to search for it and add it to the xmltv data
starfire
Posts: 7
Joined: Wed Sep 01, 2010 9:36 pm

Re: High Definition Tag

Post by starfire »

Hi,

Thanks, I figured it out and added the new tags :D

Regards.
alanbirtles
Site Admin
Posts: 495
Joined: Mon Sep 06, 2004 4:44 pm

Re: High Definition Tag

Post by alanbirtles »

would you like to share your changes?
starfire
Posts: 7
Joined: Wed Sep 01, 2010 9:36 pm

Re: High Definition Tag

Post by starfire »

Sure, after this section:-

if digiguideMode then
if tag.Children["miscellaneous"] then
local miscTag = tag.Children["miscellaneous"][1].Data
if miscTag then

I added these lines:-

if DigiMiscFind(miscTag,"(High Definition)") then
prog.Video = {}
prog.Video.Quality = "HDTV"
end
if DigiMiscFind(miscTag,"(Dolby Digital 5.1)") then
prog.Audio = {}
prog.Audio.Stereo = "Dolby Digital"
end

which seems to work, maybe it can be added to the next release.
Post Reply