Please read the Status Report Forum!

Use our own app called EPiG to get full EPG without needing an XML! You find it in your profile!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TVheadend EPG
#3
Easiest way to do it

create a file in /usr/bin/ called tv_grab_iptv-epg


Code:
nano /usr/bin/tv_grab_iptv-epg

Paste this script and edit <url> with your EPG url

Code:
#!/bin/bash
dflag=
vflag=
cflag=
if (( $# < 1 ))
then
       # <url> = your full EPG url https://iptv-epg.com/#########.xml
       wget -q -O - <url>
 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_iptv-epg is a simple grabber that just reads the EPG provided by iptv-epg.com\n"
fi
if [ "$vflag" ]
then
  printf "0.1\n"
fi
if [ "$cflag" ]
then
  printf "baseline\n"
fi

exit 0

This can also be done for any additional EPG urls/sources you have.

Restart TVHeadEnd and find/enable the module
[Image: nme0k127.png]
Reply


Messages In This Thread
TVheadend EPG - by AAJarvis - 03-31-2020, 01:42 PM
RE: TVheadend EPG - by Wally73 - 04-02-2020, 02:32 PM
RE: TVheadend EPG - by jeremyrem - 04-08-2020, 06:46 PM
RE: TVheadend EPG - by solomalee - 01-24-2021, 05:04 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)