diff options
author | Florian Pritz <f-p@gmx.at> | 2009-03-21 12:59:28 +0100 |
---|---|---|
committer | Florian Pritz <f-p@gmx.at> | 2009-03-21 12:59:28 +0100 |
commit | f0b47886f50b4df1a99fadce25f2b019f56c23bc (patch) | |
tree | f842bdb6913f96f7eae9b2ec434e66e59d96916a /.zsh | |
parent | f36450a69d2f6ae274dee9f38483da6dfef87647 (diff) | |
download | dotfiles-f0b47886f50b4df1a99fadce25f2b019f56c23bc.tar.gz dotfiles-f0b47886f50b4df1a99fadce25f2b019f56c23bc.tar.xz |
fixed youtube2mp3
why did they change the behaviour of file -bi ffs
Diffstat (limited to '.zsh')
-rw-r--r-- | .zsh/rc/30functions | 4 |
1 files changed, 2 insertions, 2 deletions
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" && |