-
Fototrend
KODI MAGYAR KIEGÉSZÍTŐK!
Új hozzászólás Aktív témák
-
-SeveN-
aktív tag
Ezzel a scripttel sikerült beolvastatni. bin/tv_grab_file -ba kellett másolni.
#!/bin/sh
. /etc/profile
xmltv_file_location=~/guide.xml
#epg_source=http://epg.smtv.be/guide.xml.gz
epg_source=https://epg.koditvepg.com/guide.xml.gz
dflag=
vflag=
cflag=
qflag=
if [ "$#" -lt "1" ] ; then
# remove existing previously generated guide files
for file in ${xmltv_file_location} ${xmltv_file_location}.gz
do
if [ -f ${file} ];
then
rm -f ${file} 2>/dev/null
fi
done
# download latest compressed guide file from server
wget -qO ${xmltv_file_location}.gz $epg_source
# uncompress the guide file
gzip -d ${xmltv_file_location}.gz
# put the content to the output
cat $xmltv_file_location
# alternatively use the following command line:
# curl -Ls ${epg_source} | gzip -d
exit 0
fi
# special handling if there are several arguments
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 ";;
--quiet) args="${args}-q ";;
#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 "dvcq" option
do
case $option in
d) dflag=1;;
v) vflag=1;;
c) cflag=1;;
q) qflag=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 "koditvepg.com\n"
fi
if [ "$vflag" ]
then
printf "1.0\n"
fi
if [ "$cflag" ]
then
printf "baseline\n"
fi
if [ "$qflag" ]
then
printf ""
fi
exit 0OFP rUlEz! http://www.mod.iweb.hu/
Új hozzászólás Aktív témák
-
Intruder2k5
MODERÁTOR
(rögzített hozzászólás)
StreamShark kérdésedet ide tedd fel, miután ezt és ezt elolvastad!
Állásajánlatok
Cég: Alpha Laptopszerviz Kft.
Város: Pécs
Cég: Ozeki Kft.
Város: Debrecen