diff options
| author | Xiao Pan <xyz@flylightning.xyz> | 2026-05-02 20:23:11 +0800 |
|---|---|---|
| committer | Xiao Pan <xyz@flylightning.xyz> | 2026-05-02 20:23:11 +0800 |
| commit | 698d06a4d037a473a82eb4191b5219fbeda14d21 (patch) | |
| tree | 0381a5f8d8635f88acc3e344698f77eb33a532c5 /sh/upd | |
| parent | 79eb39cb6ab783882b532dbe4281cf18fd6cf8de (diff) | |
upd better comment
Diffstat (limited to 'sh/upd')
| -rwxr-xr-x | sh/upd | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -325,7 +325,10 @@ music () { # 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. + # of them to opus. This also deduplicate some music files. Also note some + # old opus files may have lower bitrate comparing to converting m4a with + # aac to opus, those old opus files are kept due to the cli. 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 |
