help configuring step by step EPG

Added by Luigi Augello about 2 years ago

I'm a total novice in the use of tvheadet.
I installed tvheaded 5.1.xxx ( I not remember last part of release number, but is marked as beta upon synology repository). In my 214play NAS Synology finally it work fine.

What not working properly is the EPG. I would use a downloaded italian programmation. I downloaded

http://www.cutandpasta.it/xmltvita/epg.xml

but I cannot know how to uses it, because from GUI I cannot found where is internal EPG grabber module. In the internal grabber section of EPG Grabber page there is not a drop-down menu to select a internal grab module.
In EPG Grabber Modules page I found various external EPG Grabber modules, but noting internal... maybe is a bug? If not what I make wrong?
about this , my snapshot it is the same of
https://imageshack.com/i/p5XAuJhCj

Tank you
Luigi


Replies (7)

RE: help configuring step by step EPG - Added by Anders Gustafsson about 2 years ago

5.1? Are you sure? I thought 4.2 was the latest?

Anyway, to use XMLTV you need to install it. Unless you do so, there will be nothing available for the internal grabber. After installing XMLTV you need to configure it.

See: http://wiki.xmltv.org/index.php/Main_Page
Then see: http://wiki.xmltv.org/index.php/HowtoUseGrabbers

Note that when you will configure a grabber it will create a config file that is used on subsequent runs. The file is usually very large and it makes sense to only enable those channels you want EPG for, ie, see:
http://manpages.ubuntu.com/manpages/saucy/man1/tv_grab_it.1p.html

In the file, you will see pairs like:
channel=source
channel=source

Change the = to a ! for those you do not want, ie:

channel!source

Good luck!

RE: help configuring step by step EPG - Added by Luigi Augello about 2 years ago

thanks for the reply. obviously it is version 4.1.I am reading around I understood (perhaps wrongly) that I have to use this script.

https://github.com/nurtext/tv_grab_file_synology

replacing the line

wget -q -O - http://example.com/path/to/epg.xml

with

wget -q -O - http://www.cutandpasta.it/xmltvita/epg.xml

Should be able to download the programming (EPG). Excuse my ignorance, This is sufficient or it is necessary to follow other steps? It is necessary to configure the grabber as you say? and what is this grabber and how I can install XMLTV? could you tell me step by step what to do without entering the detail?

thanks
Luigi

RE: help configuring step by step EPG - Added by Anders Gustafsson about 2 years ago

There are several ways to skin this proverbial cat :) with tvh you can use internal or external grabbers. I use the internal one. I am on 4.0.7, but the setups should be similar. Give me an hour until I am at home and I will post a better example and screenshots.

Glad to help as I had enormous problems understanding how it was supposed to work. If I can help someone, then I am glad to!

edit:
1. Install:
xmltv - A set of utilities to manage your TV viewing
xmltv-grabbers - Backends for xmltv

2. Run
tv_find_grabbers baseline manualconfig

this should yield a list of installed grabbers. Find the one (or ones for Italy)

3. Run as the user that runs tvheadend:
tv_grab_se_tvzon --configure

(or possible with additional parameters as the link I posted explains)

4. A file is created in ~/.xmltv/tv_grab_it_xxxx.conf. Edit this file:

root-url=http://xmltv.tvzon.se/xmltv/channels.xml.gz
cachedir=/home/dalton/.xmltv/cache
channel!1.bluemovie.de
channel!13thstreet.de
channel!13thstreet.nl

Example is from sweden, but you get the idea. For channels you need, replace ! with =

5. Run tv_grab_it_xxx --days 2, as the user for tvheadend. You should see lots of stuff being downloaded.

6. In tvheadend. Configuration, Channel/EPG, Internal grabber, module. Doubleclick box and select your grabber. The default cron settings runs twice a day, should work in most cases

7. In configuration, Channels, doubleclick EPG Source and select for each channel.

EPG should now populate. Takes a few minutes though.

RE: help configuring step by step EPG - Added by Luigi Augello about 2 years ago

ok tanks so munch
Luigi

RE: help configuring step by step EPG - Added by Anders Gustafsson about 2 years ago

You are welcome. Ask again if you get stuck.

RE: help configuring step by step EPG - Added by Luigi Augello about 2 years ago

Hello everyone
Finally I succeeded, thanks to Anders.
Step by step here is what I did:

-I Have downloaded the script from
https://github.com/nurtext/tv_grab_file_synology/tree/master/src/remote

-I Changed the line n. 8

wget -q -O - http://example.com/path/to/epg.xml

with the URL

wget -q -O - http://www.cutandpasta.it/xmltvita/epg.xml

that is the EPG XMLTV ITALIAN

- I save it on the NAS and make a link

ln -s /volume1/public /tv_grab_file/usr/bin/tv_grab_file

and finally I make it executable

chmod + x /usr/bin/tv_grab_file

I make a stop&start of tvheaded,

run

tv_grab_file baseline manualconfig

and voila I found it among the modules in EPG Grabber modules.

bye
Luigi

RE: help configuring step by step EPG - Added by Frank - 12 months ago

I have just tried the above, but I am getting a error here. :)

this is on my ubuntu server:

#!/bin/sh
  1. tv_grab_file for remote XMLTV file
    dflag=
    vflag=
    cflag=
    if [ $# = 0 ]
    then
    wget -q -O - http://www.webgrabplus.com/sites/default/files/download/ini/info/siteini.pack/Denmark/tvguide.dk.channels.xml
    exit 0
    fi

for arg
do
delim=""
case "$arg" in
#translate --gnu-long-options to g (short options)
--description) args="${args}-d ";;
--version) args="${args}-v ";;
--capabilities) args="${args}-c ";;
#pass through anything else
*) [[ "${arg:0:1}" == "
" ]] || delim="\""
args="${args}${delim}${arg}${delim} ";;
esac
done

eval set -- $args

while getopts "dvc" option
do
case $option in
d) dflag=1;;
v) vflag=1;;
c) cflag=1;;
\?) printf "unknown option: -%s\n" $OPTARG
printf "Usage: %s: [--description] [--version] [--capabilities] \n" $(basename $0)
exit 2
;;
esac >&2
done

if [ "$dflag" ]
then
printf "Remote"
fi
if [ "$vflag" ]
then
printf "1.0\n"
fi
if [ "$cflag" ]
then
printf "baseline\n"
fi

exit 0
Contact GitHub API Training Shop Blog About
© 2016 GitHub, Inc. Terms Privacy Security Status Help

when I then run tv_grab_tvtid baseline manualconfig I am getting this error:

/usr/bin/tv_grab_tvtid: 21: /usr/bin/tv_grab_tvtid: Bad substitution

What can I do here to fix this?

I am really missing a place where I can get epg from danish site. :)

(1-7/7)