scripts

misc scripts and tools
git clone git://git.2f30.org/scripts
Log | Files | Refs

commit d824454a1885b94a3ff1731e1e1577a69ecc34e6
parent 0b26d632bd6c04c1d1ef5aa1e0cef758fe76fa45
Author: sin <sin@2f30.org>
Date:   Thu,  7 Nov 2013 16:34:40 +0000

Ensure a sensible output filename of the form <title>.<ext>

Diffstat:
Mytfetch | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ytfetch b/ytfetch @@ -13,7 +13,8 @@ for URL in "$@"; do echo "see $URL" # each --get comes on a line by its own in a predefined order # command line order does not matter - LIST=$(youtube-dl --restrict-filenames --get-url --get-filename "$URL") + LIST=$(youtube-dl --restrict-filenames --get-url --get-filename \ + -o "%(title)s.%(ext)s" "$URL") I=0 # keep state for L in $LIST; do case $I in