diff bin/yt2mp3.sh @ 77:db859ed2585c

more sanity in this script for debugging
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 27 May 2010 22:10:34 -0700
parents f3ab51c79813
children 4f49c0caa801
line wrap: on
line diff
--- a/bin/yt2mp3.sh	Wed May 26 17:50:48 2010 -0700
+++ b/bin/yt2mp3.sh	Thu May 27 22:10:34 2010 -0700
@@ -4,9 +4,9 @@
 
 URL=$1
 TITLE=$($YOUTUBEDL --get-title $URL)
-$YOUTUBEDL -b -i -r 50k $URL -o "%(title)s.%(ext)s" 
 EXT=mp4
+$YOUTUBEDL -b -i -r 50k $URL -o "%(title)s.${EXT}" 
 rm -f audiodump.wav
 mplayer -vc null -vo null -ao pcm "$TITLE.$EXT"
 lame -q 2 audiodump.wav "$TITLE.mp3"
-rm "$TITLE.$EXT"
\ No newline at end of file
+#rm "$TITLE.$EXT"
\ No newline at end of file