From 698d06a4d037a473a82eb4191b5219fbeda14d21 Mon Sep 17 00:00:00 2001 From: Xiao Pan Date: Sat, 2 May 2026 20:23:11 +0800 Subject: upd better comment --- sh/upd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sh/upd b/sh/upd index e597806..fb8dba8 100755 --- a/sh/upd +++ b/sh/upd @@ -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 -- cgit v1.3