scripts

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

commit 26349c12653665a5e4f27614ab8cbd37b1a5e357
parent c97e0f87dbe8461c623f3efcff5db1bd2f6a3a0e
Author: sin <sin@2f30.org>
Date:   Mon,  4 Nov 2013 16:57:13 +0000

Do not request the format explicitly

Diffstat:
Mytfetch | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ytfetch b/ytfetch @@ -18,11 +18,11 @@ scratch=$(mktemp -d) # Download all songs to the scratch space for v in "$@"; do - youtube-dl -f mp4 -o "$scratch/%(title)s.%(ext)s" "$v" + youtube-dl -o "$scratch/%(title)s.%(ext)s" "$v" done mkdir -p $HOME/music/yt # Encode all of them cd $scratch -find . -iname "*.mp4" -exec sh -c 'ffmpeg -i "$0" "$HOME/music/yt/${0%.*}.mp3"' {} \; +find . -name "*.mp4" -o -name "*.flv" -exec sh -c 'ffmpeg -i "$0" "$HOME/music/yt/${0%.*}.mp3"' {} \;