Skip to main content

getting rid of numeric codes in mc2xml output

mc2xml is a TV schedule grabber that can be used for MythTV. The output of mc2xml (why isn't this program opensource, by the way ?) is in the xmltv format, but the channel names are rather cryptic. I don't want to see "I147350.750834.microsoft.com", but rather "ned 3". Getting rid of these codes is easy with a small shell script.
mc2xml -c be -g 3000
cat ~/channelconvert.txt | while read line
do
sed -e "s/$line/g" -i xmltv.xml
done
Where channelconvert.txt contains lines such as
I343250.54932.microsoft.com/cnni
I399250.70.microsoft.com/bbc1
Then input it in your database with mythfilldatabase. Happy pvr-ing !

Comments

Anonymous said…
This comment has been removed by a blog administrator.