diff options
Diffstat (limited to 'templates/bin/yle-dl')
| -rwxr-xr-x | templates/bin/yle-dl | 10 |
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 $? |
