From f0b47886f50b4df1a99fadce25f2b019f56c23bc Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 21 Mar 2009 12:59:28 +0100 Subject: fixed youtube2mp3 why did they change the behaviour of file -bi ffs --- .zsh/rc/30functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.zsh') diff --git a/.zsh/rc/30functions b/.zsh/rc/30functions index ff42b2d..4140584 100644 --- a/.zsh/rc/30functions +++ b/.zsh/rc/30functions @@ -190,9 +190,9 @@ short_ii() { youtube2mp3() { for file in "$@" do - if [ -f ${file} ] ; then + if [ -f "${file}" ] ; then title=$(echo ${file} | sed 's/\(.*\)\..*/\1/') - case $(file -bi ${file}) in + case $(file -b --mime-type "${file}") in video/mp4) faad "${file}" && lame "${title}.wav" "${title}.mp3" && -- cgit v1.2.3-24-g4f1b