Project

General

Profile

cat xmltv file into tvheadend

Added by Gujs - almost 14 years ago

Hi,

I made my own xmltv grabber in python which outputs xml files for each channel separated in xmltv format. I validated these files with tv_validate_file from xmltv tool and it looks OK.
Now I would like to cat these files into tvheadend using tv_grab_file from here http://code.google.com/p/tv-grab-file/
I just changed one line in tv_grab_file to cat all the files and not just one with this:
cat /home/hts/.xmltv/*.xmltv

When I try this in terminal it works OK and I see output of all files, but when I try to load xmltv data into tvheadend, I just get response:
No output from "/usr/bin/tv_grab_file"

I also tried to cat just one file and I got the same response.

I attached one of xmltv files.


Replies (1)

RE: cat xmltv file into tvheadend - Added by Yura Scheglyuk almost 14 years ago

Remove

<?xml version="1.0" encoding="utf-8" ?>, <!DOCTYPE ...>, <tv>, </tv>
from all of your separated xmltv files and make header and footer files like this:

000000.xmltv:

<?xml version="1.0" encoding="UTF-8" ?>
<tv>

zzzzzzzzzz.xmltv:

</tv>

The trick is the cat cated files in lexicographical order so header file 000000.xmltv will be cated first and footer file zzzzzzzzzz.xmltv will be cated latest.

    (1-1/1)