Moderator Control Panel ]

Tv grab tutorial for MOI

Tv grab tutorial for MOI

Postby cilindro » Fri Jun 26, 2015 10:37 am

first download tv_grab_file. Then you edit with any text editor with these parameters.

#!/bin/sh

if [ $# -lt 1 ]
then
cat /mnt/disk/.xmltv/tv_grab_file.xmltv
exit 0
fi

while [ $# -gt 0 ]
do case "$1" in
-d | --description )
printf "tv_grab_file is a simple grabber that just read the ~/.xmltv/tv_grab_file.xmltv file\n"
;;

-v | --version )
printf "0.1\n"
;;

-c | --capabilities )
printf "baseline\n"
;;

-* )
printf "unknown option: %s\n" "$1"
printf "Usage: %s: [--description] [--version] [--capabilities]\n" ${0##*/}
exit 2
;;

esac; shift
done

exit 0

Now edit the line starting with "cat" with the source and destination. Source is wherever the xmltv.xml is, and destination always is /user/bin/tv_grab_file. example assuming xmltv file is on USB drive

cat "/media/sda1/xmltv.xml" usr/bin/tv_grab_file.xmltv
----------source-------------[space]------destination--------

Now from ssh make TV graber file executable= chmod 755 /usr/bin/tv_grab_file and restart tvheadend= systemctl start tvheadend

Go to configuration + channel/EPG + EPG grabber and now you see tvgrab.
cilindro
 
Posts: 16
Joined: Mon May 11, 2015 2:43 am

Return to MOI Pro

Who is online

Users browsing this forum: No registered users and 8 guests

cron