diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2023-03-14 17:24:11 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2023-03-14 17:24:11 -0700 |
commit | a38cd384b588752734854c039bd7a4c44862558d (patch) | |
tree | 08a85c7a2e545f2ed3b1ff0490ea6383fbdd57b5 /home | |
parent | 219ce516d78c3af1537e298b3edc7ae5cc0587ba (diff) |
upd music
Diffstat (limited to 'home')
-rwxr-xr-x | home/xyz/.local/bin/upd | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd index 5a71f575..7abf97b4 100755 --- a/home/xyz/.local/bin/upd +++ b/home/xyz/.local/bin/upd @@ -6,6 +6,7 @@ all () { clean qb refl + music usb xmr } @@ -115,16 +116,21 @@ xmr () { sync } +music () { + yt-dlp -f 'bestaudio[ext=opus]/bestaudio' --match-filter 'license=cc-by' --match-filter 'title~=(?i)cc-by' -P "$XDG_MUSIC_DIR/cc_by/scott_buckley" https://soundcloud.com/scottbuckley/tracks +} + if [ $# -eq 0 ]; then fast else - while getopts acfjmpqrux opt; do + while getopts acfjmMpqrux opt; do case $opt in a)all;; c)clean;; f)fast;; j)userjs;; m)misc;; + M)music;; p)pac;; q)qb;; r)refl;; |