summaryrefslogtreecommitdiffstats
path: root/zsh/.zshrc
diff options
context:
space:
mode:
authorAmin Bandali <me@aminb.org>2014-10-29 15:03:55 -0400
committerAmin Bandali <me@aminb.org>2014-10-29 15:03:55 -0400
commit23e6afcbccdfe657a618a094b71e43687ce2784b (patch)
treea82962ba267109605dd3b427483d1ffbe9e5299f /zsh/.zshrc
parenta341f8e43a897def62d97bb0aae3b4bb77f189a1 (diff)
downloadconfigs-23e6afcbccdfe657a618a094b71e43687ce2784b.tar.gz
configs-23e6afcbccdfe657a618a094b71e43687ce2784b.tar.xz
configs-23e6afcbccdfe657a618a094b71e43687ce2784b.zip
use youtube-dl's own switches for y function
Diffstat (limited to '')
-rw-r--r--zsh/.zshrc.local3
1 files changed, 1 insertions, 2 deletions
diff --git a/zsh/.zshrc.local b/zsh/.zshrc.local
index 496f94b..be7ad02 100644
--- a/zsh/.zshrc.local
+++ b/zsh/.zshrc.local
@@ -14,6 +14,5 @@ function take() {
function y() {
cd ~/music
- youtube-dl -f bestaudio $1
- for f in *.m4a; do ffmpeg -i "$f" -codec:v copy -codec:a libmp3lame -q:a 2 "${f%.m4a}.mp3"; rm "$f"; done
+ youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 $1
}