Commit b018ba74 authored by Olav Kvittem's avatar Olav Kvittem

path-justering

parent 0943bb31
...@@ -8,7 +8,7 @@ d=`date +%d` ...@@ -8,7 +8,7 @@ d=`date +%d`
h=`date +%H` h=`date +%H`
tv=/var/lib/qstream/data/tv tv=/var/lib/qstream/data/iptv
ydir=$tv/$y ydir=$tv/$y
test -d $ydir || mkdir $ydir test -d $ydir || mkdir $ydir
mdir=$ydir/$m mdir=$ydir/$m
......
/usr/bin/qstream-iptv < /etc/qstream/iptv/etc/poll.cf /usr/bin/qstream-iptv < /etc/qstream/iptv/poll.cf
...@@ -4,9 +4,9 @@ dest=$1 ...@@ -4,9 +4,9 @@ dest=$1
tmp=/tmp/poll.cf.new$$ tmp=/tmp/poll.cf.new$$
curl -s http://forskningsnett.uninett.no/tv/playlist.html \ curl -s http://forskningsnett.uninett.no/tv/playlist.html \
| perl -ne 'if(/^#EXTINF:.*,(.*)/){$n=$1; $n=~s/\W/_/g} elsif (/^\w/){chomp;if(/239.1.1/){$op="Snap"} elsif (/233.155.107/){$op="TV2"} else{$op="Div"};printf "%s_%s;%s;-mpeg\n", $op, $n, $_}' | grep -v -f /local/net-status/iptv/etc/nopoll.cf > $tmp | perl -ne 'if(/^#EXTINF:.*,(.*)/){$n=$1; $n=~s/\W/_/g} elsif (/^\w/){chomp;if(/239.1.1/){$op="Snap"} elsif (/233.155.107/){$op="TV2"} else{$op="Div"};printf "%s_%s;%s;-mpeg\n", $op, $n, $_}' | grep -v -f /local/net-status/iptv/nopoll.cf > $tmp
if test -s $tmp; then if test -s $tmp; then
# ci -q -l -mauto /local/net-status/iptv/etc/poll.cf0 # ci -q -l -mauto /etc/qstream/iptv/poll.cf
mv $tmp $dest mv $tmp $dest
fi fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment