diff options
author | Patrick Simianer <p@simianer.de> | 2016-04-14 17:30:30 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-04-14 17:30:30 +0200 |
commit | 3c1b8d5c8947bf0aa3e929c21f59eaf06aba33af (patch) | |
tree | 71111c40dd00a4739c53413f5926a26bbe901ead /youtube_mp3 | |
parent | 2c01777eb98ac7649d24e1a60a94393892b7e7af (diff) |
more general monitor_soft_raid
Diffstat (limited to 'youtube_mp3')
-rwxr-xr-x | youtube_mp3 | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/youtube_mp3 b/youtube_mp3 deleted file mode 100755 index 4d4904e..0000000 --- a/youtube_mp3 +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/zsh - -usage() -{ - echo "$0 <yt link> <mp3 file>" - exit 1 -} - -if [ -z $1 ] || [ -z $2 ]; then usage; fi - -TMP_FN=/tmp/youtube-dl-$RANDOM -while [ -a $TMP_FN ]; do - TMP_FN=/tmp/youtube-dl-$RANDOM -done -echo $TMP_FN - -youtube-dl --output=$TMP_FN --format=18 "$1" -ffmpeg -i $TMP_FN -acodec libmp3lame -ac 2 -ab 128k -vn -y "$2" -rm $TMP_FN - |