Project

General

Profile

How to activate xmltv

Added by Stéphane Dubois almost 12 years ago

I can't figure out how to include my xmltv file into TVH 3.1.694 running on a Synology DS412+.

I made the following script named tv_grab_fr

#!/bin/bash
if [ "$1" = "--version" ] ; then
    echo "XMLTV module version 0.5.57" 
    echo "This is tv_grab_kazer version 0.1" 
    exit
fi

if [ "$1" = "--description" ] ; then
        echo "France Kazer" 
        exit
fi

if [ "$1" = "--capabilities" ] ; then
        echo "France Kazer" 
        exit
fi

wget -q "http://www.kazer.org/tvguide.zip?u=mykey" -O /tmp/xmltv.zip
unzip -p /tmp/xmltv.zip
rm /tmp/xmltv.zip

I put this script in /usr/bin, but I can't seclect it in Configuration - EPG grabber.
How can I tell to TVH to use this script ?

I also tried with the socket as you said in a previous post

tv_grab_fr | nc -u /usr/local/tvheadend/var/epggrab/xmltv.sock

but I get the following error
./xmltv.sock: forward host lookup failed: Unknown server error

nc command (netcat) is expecting a host and a port. I don't understand what to do with this .sock file.


Replies (3)

RE: How to activate xmltv - Added by Stéphane Dubois almost 12 years ago

The first solution with tv_grab_fr script works now !
Magicaly, the script has appeared in Module listbox in Configuration - EPG grabber - Internal Grabber.

However I'm curious about the socket solution, how to use it ?

RE: How to activate xmltv - Added by Adam Sutton almost 12 years ago

try -U instead of -u, there are 2 common versions of netcat and they use -u and -U to mean different things.

Adam

RE: How to activate xmltv - Added by janne nykänen over 11 years ago

I have again problems in getting xmltv and tvheadend play together, seems like magic sometimes! Anyway, the correct way (under Arch Linux at least) to use the XMLTV socket External Interface:

Instead of "nc -u", use a command like this as hts user: .../tv_grab_XX | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock

Stéphane Dubois wrote:

I can't figure out how to include my xmltv file into TVH 3.1.694 running on a Synology DS412+.

I made the following script named tv_grab_fr
[...]

I put this script in /usr/bin, but I can't seclect it in Configuration - EPG grabber.
How can I tell to TVH to use this script ?

I also tried with the socket as you said in a previous post
[...]
but I get the following error
./xmltv.sock: forward host lookup failed: Unknown server error

nc command (netcat) is expecting a host and a port. I don't understand what to do with this .sock file.

    (1-3/3)