summaryrefslogtreecommitdiffstats
path: root/.zsh/rc/30functions
diff options
context:
space:
mode:
Diffstat (limited to '.zsh/rc/30functions')
-rw-r--r--.zsh/rc/30functions4
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" &&