Project

General

Profile

XMLTV from TimeFor.TV to Tvheadend - Importer?

Added by Benjamin Petterson almost 12 years ago

I have seen on http://en.timefor.tv/xmltv that they provide xmltv for nearly all European channels - especially the epg-data for all Scandinavian channels combined with the major international channels suits my needs.
I am now wondering if some of you guys know an importer, so I can get the xmltv from timefor.tv into Tvheadend? The website does already have wiki, but I do not find any useful information there: http://xmltvwiki.timefor.tv/wiki/Main_Page.

Best regards,
Benjamin


Replies (1)

RE: XMLTV from TimeFor.TV to Tvheadend - Importer? - Added by Zeppen . almost 12 years ago

hi, im pretty new to this too, but i was able to set the grabber.
one thing missing is content/genre isnt populated correctly

Just use google + http://xmltvwiki.timefor.tv/wiki/TVHeadend_TimeFor.TV_importer

you have to download and rename the epg.xml to tv_grab_file and place it in
/storage/.xbmc/addons/service.multimedia.tvheadend/bin/

in the same foldet you also have to save a file named tv_grab_file with
#!/bin/bash
dflag=
vflag=
cflag=
if (( $# < 1 ))
then
wget qO http://timefor.tv/xmltv/insertyourprivatekeyhere!!
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

#Reset the positional parameters to the short options
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 "tv_grab_file is a simple grabber that just read the ~/.xmltv/tv_grab_file.xmltv file\n"
fi
if [ "$vflag" ]
then
printf "0.1\n"
fi
if [ "$cflag" ]
then
printf "baseline\n"
fi

exit 0

    (1-1/1)