projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a341f8e
)
use youtube-dl's own switches for y function
author
Amin Bandali
<me@aminb.org>
Wed, 29 Oct 2014 19:03:55 +0000
(15:03 -0400)
committer
Amin Bandali
<me@aminb.org>
Wed, 29 Oct 2014 19:03:55 +0000
(15:03 -0400)
zsh/.zshrc.local
patch
|
blob
|
blame
|
history
diff --git
a/zsh/.zshrc.local
b/zsh/.zshrc.local
index
496f94b
..
be7ad02
100644
(file)
--- a/
zsh/.zshrc.local
+++ b/
zsh/.zshrc.local
@@
-14,6
+14,5
@@
function take() {
function y() {
cd ~/music
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
}
}