forked from Ivasoft/docker-tvheadend
Compare commits
3 Commits
90ba8b1c-l
...
26713c1e-l
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c63fecd5ca | ||
|
|
dd9d991734 | ||
|
|
667bbc700c |
@@ -309,6 +309,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **16.04.22:** - Added URL XMLTV grabber.
|
||||
* **05.01.22:** - Rebase to Alpine 3.15. Disable execinfo to fix builds. Update xmltv.
|
||||
* **11.05.21:** - Added Intel iHD driver support.
|
||||
* **02.06.20:** - Update to Alpine 3.12.
|
||||
|
||||
@@ -25,7 +25,7 @@ gmp-6.2.1-r1
|
||||
gnu-libiconv-1.16-r0
|
||||
gnutls-3.7.1-r0
|
||||
graphite2-1.3.14-r0
|
||||
gzip-1.11-r0
|
||||
gzip-1.12-r0
|
||||
harfbuzz-3.0.0-r2
|
||||
intel-gmmlib-21.3.3-r0
|
||||
intel-media-driver-21.4.1-r0
|
||||
@@ -255,7 +255,7 @@ x264-libs-20210613-r0
|
||||
x265-3.5-r0
|
||||
x265-libs-3.5-r0
|
||||
xvidcore-1.3.7-r1
|
||||
xz-5.2.5-r0
|
||||
xz-libs-5.2.5-r0
|
||||
xz-5.2.5-r1
|
||||
xz-libs-5.2.5-r1
|
||||
zlib-1.2.12-r0
|
||||
zstd-libs-1.5.0-r0
|
||||
|
||||
@@ -124,6 +124,7 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "16.04.22:", desc: "Added URL XMLTV grabber." }
|
||||
- { date: "05.01.22:", desc: "Rebase to Alpine 3.15. Disable execinfo to fix builds. Update xmltv." }
|
||||
- { date: "11.05.21:", desc: "Added Intel iHD driver support." }
|
||||
- { date: "02.06.20:", desc: "Update to Alpine 3.12." }
|
||||
|
||||
67
root/usr/bin/tv_grab_url
Normal file
67
root/usr/bin/tv_grab_url
Normal file
@@ -0,0 +1,67 @@
|
||||
#!/bin/bash
|
||||
|
||||
dflag=
|
||||
vflag=
|
||||
cflag=
|
||||
|
||||
if (( $# < 1 ))
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
OPTARG=""
|
||||
URL=$1
|
||||
|
||||
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
|
||||
*) if [ "${arg:0:1}" == "-" ] || delim="\""
|
||||
then
|
||||
args="${args}${delim}${arg}${delim} "
|
||||
else
|
||||
OPTARG=${arg}
|
||||
fi
|
||||
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 "XMLTV URL grabber\n"
|
||||
exit 0
|
||||
fi
|
||||
if [ "$vflag" ]
|
||||
then
|
||||
printf "0.1\n"
|
||||
exit 0
|
||||
fi
|
||||
if [ "$cflag" ]
|
||||
then
|
||||
printf "baseline\n"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
curl -s "$URL"
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user