diff options
| author | Antti Ajanki <antti.ajanki@iki.fi> | 2011-07-07 18:49:00 +0300 |
|---|---|---|
| committer | Antti Ajanki <antti.ajanki@iki.fi> | 2011-07-07 19:05:02 +0300 |
| commit | d9c351d21c08cecceee47f8d4d13f8c5fec57922 (patch) | |
| tree | b32f78e026f0f0c53fa734393d4773d404219e25 /templates/bin/yle-dl | |
| parent | bd88072b5df85c392917e4bce11a40c0058c4657 (diff) | |
| download | vdr-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-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 $? |
