summaryrefslogtreecommitdiff
path: root/templates/bin/yle-dl
diff options
context:
space:
mode:
authorAntti Ajanki <antti.ajanki@iki.fi>2011-07-07 18:49:00 +0300
committerAntti Ajanki <antti.ajanki@iki.fi>2011-07-07 19:05:02 +0300
commitd9c351d21c08cecceee47f8d4d13f8c5fec57922 (patch)
treeb32f78e026f0f0c53fa734393d4773d404219e25 /templates/bin/yle-dl
parentbd88072b5df85c392917e4bce11a40c0058c4657 (diff)
downloadvdr-plugin-webvideo-d9c351d21c08cecceee47f8d4d13f8c5fec57922.tar.gz
vdr-plugin-webvideo-d9c351d21c08cecceee47f8d4d13f8c5fec57922.tar.bz2
Streaming support for external downloaders
Diffstat (limited to 'templates/bin/yle-dl')
-rwxr-xr-xtemplates/bin/yle-dl10
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/bin/yle-dl b/templates/bin/yle-dl
index a317b12..fdaf845 100755
--- a/templates/bin/yle-dl
+++ b/templates/bin/yle-dl
@@ -1,7 +1,8 @@
#!/bin/sh
# Downloads a video stream from Yle Areena to stdout using yle-dl
-# script. The first parameter is the video page URL.
+# script. The first parameter is the video page URL. Second parameter
+# is the output file (optional).
YLEDL=yle-dl
@@ -17,6 +18,11 @@ if [ "x$1" = "x" ]; then
exit 1
fi
-$YLEDL $1 -q -o -
+OUTFILE="$2"
+if [ "x$OUTFILE" = "x" ]; then
+ OUTFILE=-
+fi
+
+$YLEDL $1 -q -o "$OUTFILE"
exit $?