EPG configs and scripts
Here I will post the scripts and configs used to get EPG data from my current and/or older TV providers into my MythTV database.
For TV Vlaanderen, I used mc2xml to grab EPG data with this script to call it:
./mc2xml -c be -g 2140 -o xmltv.xml
echo Chan namen veranderen ...
cat replacements | while read line
do
sed -e "s/$line/g" -i xmltv.xml
done
mythfilldatabase --update --refresh-all --file 1 xmltv.xml
I run it every morning at 4:00 so it doesn’t interfere with recordings and Live TV viewings.
The replacements file used contains:
I1.750821.microsoft.com/Een
I2.750822.microsoft.com/Ketnet-Canvas
I3.751666.microsoft.com/VTM
I4.751668.microsoft.com/VT4
I5.751667.microsoft.com/2BE
I6.753795.microsoft.com/VijfTV
I7.751671.microsoft.com/Vitaya
I8.751674.microsoft.com/JimTV
I9.754564.microsoft.com/KanaalZ
I11.750832.microsoft.com/Ned1
I12.750833.microsoft.com/Ned2
I13.750834.microsoft.com/Ned3
I14.751990.microsoft.com/BVN
I16.750678.microsoft.com/NGC
I17.750743.microsoft.com/Discovery
I34.751084.microsoft.com/Eurosport
I39.750742.microsoft.com/MTV
I52.54932.microsoft.com/CNNInternational
I53.751866.microsoft.com/Euronews
I62.409491.microsoft.com/CNBC
But it holds only the channels I normally use. The last 7 or so I’m not even sure if I can receive them.
If you find any issues or adjustments that might be interesting, please let me know and post them back.
Thanks
[...] don’t remember that part anymore either), which you can find under the seperate page EPG configs and scripts in my pages [...]
The script in a one-liner, with a “progress bar”.
cat replacements | while read line; do echo “Replacing $line”; sed -ie “s/$line/g” xmltv.xml; done
Still trying to figure out how the channel name maps on to the xmltv ID cause I get a bunch of errors like these when running mythfilldatabase.
Unknown xmltv channel identifier: een.be – Skipping channel.
Is the XMLTV ID somewhere in here?
SELECT channum,sourceid,callsign,name,xmltvid
FROM channel
ORDER BY CAST(channum AS UNSIGNED);
Looks good…
Thanks…
The XMLTVID is to be put in the database, it’s not there by default, I think.. At least, I had to set the details…
I don’t remember where getting the details etc, but if you look into the mc2xml generated file, you’ll see data for the channels, and you’ll be able to figure out which microsoft ID is for which channel. That’s how I do it if something changes…
Good luck, and don’t hesitate to ask for more info or help
That’s how we get it to work: help each other out… and that’s what this blog is about: sharing my knowledge and experiences.