Insert HDTV tag based on channel name
Posted: Sun Apr 10, 2011 4:55 pm
Hi, I've tried a few options and settled on the Radio Times guide into SageTV. I've got it working OK but the down side is the lack of the HDTV tag from the UK Radio Times info.
One thought I've had is to insert the tag on the fly if the channel name contains 'HD'. From what I can make out this would involve amending some code into the xmltv_parse file, probably at this point?
if DigiMiscFind(miscTag, "(High Definition)") then
if not prog.Video then
prog.Video = {}
end
prog.Video.Quality = "HDTV"
end
From my very limited knowledge of programming this might involve amending the first line above to check if 'HD' (in caps, no space between the H and the D) is contained in the name of the channel. eg Comedy Channel HD
Am I on the right track here and if so what would the code be that check to see 'if channel name contains HD'
many thanks - I've tried to take this as far as I can on my own but I'm stuck at the final hurdle.
Ade
One thought I've had is to insert the tag on the fly if the channel name contains 'HD'. From what I can make out this would involve amending some code into the xmltv_parse file, probably at this point?
if DigiMiscFind(miscTag, "(High Definition)") then
if not prog.Video then
prog.Video = {}
end
prog.Video.Quality = "HDTV"
end
From my very limited knowledge of programming this might involve amending the first line above to check if 'HD' (in caps, no space between the H and the D) is contained in the name of the channel. eg Comedy Channel HD
Am I on the right track here and if so what would the code be that check to see 'if channel name contains HD'
many thanks - I've tried to take this as far as I can on my own but I'm stuck at the final hurdle.
Ade