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.