[vdr] ANNOUCEMENT: xmltv2epg

Pjotr Kourzanov peter.kourzanov at xs4all.nl
Mon Feb 12 11:22:10 CET 2007

Rob Davis wrote:
> Pjotr Kourzanov wrote:
>> Rob Davis wrote:
>>> Pjotr Kourzanov wrote:
>>>> Oops, forgot the scripts;-)
>>>> Pjotr Kourzanov wrote:
>>>>> Dear all,
>>>>>   Having been dissatisfied with performance and features of xmltv2vdr
>>>>> (too slow, no credits/category information in epg.data) I have created
>>>>> a new script (based on AWK), that can be found in the attachment.
>>>>>   If you want to try it, put your channels.conf.xmltv in one folder
>>>>> with these two scripts, and then run cat *.xml | ./xmltv2epg > epg.
>>>>>   My mileage: 54MB XML -> 18MB EPG in 44 minuties (xmltv2vdr used to
>>>>> take 9 hours).
>>> Looks good, but what does the command line look like?
>> Well, do a "cat *.xml | ./xmltv2epg > epg" if you have many separate 
>> xml files.
>> Otherwise, ./xmltv2epg file.xml > epg should suffice.
> Sorry chaps to go back to an old thread..
> How would you send epg back into vdr?  I know you could just use it 
> directly from vdradmin, but I would like to append the xmltv listings to 
> data already downloaded.
> Should I just cat >>epg.data - or do I need to upload it using an svdr 
> command?

Nowadays I use this script to upload it to the VDR:
{ echo -ne "${clre:+clre\n}"
   echo "quit"
} | netcat localhost 2001

for x in $@; do
   echo $x >/dev/stderr
   echo "pute"
   cat $x | ./epgfix
   echo "."
   echo "quit"
} | netcat localhost 2001

epgfix is to truncate the lines to VDR's 10k limit (for some reason,
10240-1 failed for me once, hence -2:-):
#!/usr/bin/awk -f
{print substr($0,1,10*1024-2)}

run it with "clre=1 ./putepg file1 file2 ..." to clear VDR's EPG first.


More information about the vdr mailing list