diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2026-05-02 20:16:36 +0800 |
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2026-05-02 20:16:36 +0800 |
| commit | 79eb39cb6ab783882b532dbe4281cf18fd6cf8de (patch) | |
| tree | 441b24b8e51021f5a7ced7aaf193e169d46e93ce /sh/upd | |
| parent | c73429ac9b369d9b1b2e24040e8515c588b07595 (diff) | |
upd yt-dlp download music of scott then convert all to opus
Diffstat (limited to 'sh/upd')
| -rwxr-xr-x | sh/upd | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -317,6 +317,16 @@ refl () { 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 + # In the past, most scott's music on soundcloud has opus format, some are + # mp3 and some are m4a with aac. At maybe February 2026, I can't download + # scott's music from soundcloud with yt-dlp with this cli. Later on at May + # 2026, the issue somehow fixed. But I noticed that yt-dlp can only + # download most scott's music on soundcloud in m4a with aac. This cause me + # redownload a lot of music in m4a. I prefer opus because it is better and + # take less space. And I want yt-dlp to not download already downloaded + # music files. So I decided to use `-x --audio-format opus` to convert all + # of them to opus. The trade-off is that converting lossy to lossy is bad. + yt-dlp -f 'bestaudio[ext=opus]/bestaudio' -x --audio-format opus --match-filter 'license=cc-by' --match-filter 'title~=(?i)cc-by' -P "$XDG_MUSIC_DIR/cc-by/scott_buckley" https://soundcloud.com/scottbuckley/tracks rsync -avP --delete "$XDG_MUSIC_DIR/cc-by/scott_buckley" pp:music/cc-by rsync -avP --delete "$XDG_MUSIC_DIR/gpl-3.0-only" pp:music rsync -avP --delete "$XDG_MUSIC_DIR/favorite" pp:music |
