summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsh/upd5
1 files changed, 4 insertions, 1 deletions
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