Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Bjørn Villa
qstream
Commits
b018ba74
Commit
b018ba74
authored
Jan 21, 2014
by
Olav Kvittem
Browse files
path-justering
parent
0943bb31
Changes
3
Hide whitespace changes
Inline
Side-by-side
qstream-iptv
View file @
b018ba74
...
...
@@ -8,7 +8,7 @@ d=`date +%d`
h
=
`
date
+%H
`
tv
=
/var/lib/qstream/data/tv
tv
=
/var/lib/qstream/data/
ip
tv
ydir
=
$tv
/
$y
test
-d
$ydir
||
mkdir
$ydir
mdir
=
$ydir
/
$m
...
...
qstream-iptv.job
View file @
b018ba74
/
usr
/
bin
/
qstream
-
iptv
<
/
etc
/
qstream
/
iptv
/
etc
/
poll
.
cf
/
usr
/
bin
/
qstream
-
iptv
<
/
etc
/
qstream
/
iptv
/
poll
.
cf
qstream-poll-list
View file @
b018ba74
...
...
@@ -4,9 +4,9 @@ dest=$1
tmp
=
/tmp/poll.cf.new
$$
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
# ci -q -l -mauto /
local/net-status
/iptv/
etc/
poll.cf
0
# ci -q -l -mauto /
etc/qstream
/iptv/poll.cf
mv
$tmp
$dest
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment