Page 1 of 1

High Definition Tag

Posted: Mon Jun 14, 2010 9:48 am
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.

Re: High Definition Tag

Posted: Mon Jun 14, 2010 11:56 am
by alanbirtles
If you open the url that xmltv is downloading from in your browser can you see the tags there?

Re: High Definition Tag

Posted: Wed Sep 01, 2010 9:43 pm
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?

Re: High Definition Tag

Posted: Thu Sep 02, 2010 7:28 am
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

Re: High Definition Tag

Posted: Thu Sep 02, 2010 9:05 am
by starfire
Hi,

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

Regards.

Re: High Definition Tag

Posted: Thu Sep 02, 2010 9:50 am
by alanbirtles
would you like to share your changes?

Re: High Definition Tag

Posted: Thu Sep 02, 2010 10:41 am
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.