From 58b4247a21908894659472df1c7da3aa55d09d7f Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 4 Apr 2026 23:55:37 +0900 Subject: modified playlists/entire.m3u, modified bin/qndl, modified Music/.music.txt --- ar/.config/mpd/playlists/entire.m3u | 1 + ar/.local/bin/qndl | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'ar') diff --git a/ar/.config/mpd/playlists/entire.m3u b/ar/.config/mpd/playlists/entire.m3u index 03480a9..f7b2b27 100644 --- a/ar/.config/mpd/playlists/entire.m3u +++ b/ar/.config/mpd/playlists/entire.m3u @@ -75,6 +75,7 @@ GIVĒON/TAKE TIME/GIVĒON - Heartbreak Anniversary.mp3 Green Day/21st Century Breakdown/Green Day - Last Night on Earth.mp3 GroovyRoom/Yes or No/GroovyRoom - Yes or No (Feat. 허윤진 of LE SSERAFIM, Crush) (Yes or No (Feat. 허윤진 of LE SSERAFIM,....mp3 Hayd/Changes - EP/Hayd - Closure.mp3 +Hebi/EVER/EVER (늘 (EVER)).mp3 HoneyWorks/可愛くてごめん (feat. ちゅーたん(CV早見沙織))/可愛くてごめん.mp3 Huh Gak/Hello/Huh Gak - How did we (우린 어쩌다 헤어진 걸까).mp3 Huh Gak/Love Letter/HuhGak - Miss you (혼자, 한잔).mp3 diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl index 80b90ff..2ab96c2 100755 --- a/ar/.local/bin/qndl +++ b/ar/.local/bin/qndl @@ -120,7 +120,7 @@ enqueue() { tsp -D "$_idnum" notify-send "✅ ${_dl_type} download complete:" "$_url" # Failure notification — waits for job, checks its exit status - tsp bash -c 'tsp -w "$1"; _exit=$(tsp -i "$1" | sed -n "s/.*exited with status //p"); [ "$_exit" != "0" ] && notify-send "❌ Failed to download:" "$2"' -- "$_idnum" "$_url" + tsp bash -c 'tsp -w "$1"; _exit=$(tsp -i "$1" | sed -n "s/.*exit code //p"); [ -n "$_exit" ] && [ "$_exit" != "0" ] && notify-send "❌ Failed to download:" "$2"' -- "$_idnum" "$_url" if [ "$_dl_type" = "music" ]; then tsp -D "$_idnum" bash -c "mpc update --wait && find '$_music_dir' -name '*.mp3' | sed 's|$_music_dir/||' | sort > '$HOME/.config/mpd/playlists/entire.m3u'" @@ -177,7 +177,7 @@ download_music() { _url="$1" _output_dir="${XDG_MUSIC_DIR:-$HOME/Music}" _archive="${XDG_DOTFILES_DIR:-$HOME/.dotfiles}/global/Music/.music.txt" - _format="${_output_dir}/%(album_artist,artist|Unknown Artist)s/%(album|Unknown Album)s/%(title)s.%(ext)s" + _format="${_output_dir}/%(channel|Unknown Artist)s/%(album|Unknown Album)s/%(title)s.%(ext)s" _pl_result="$(handle_playlist "$_url" "music" "$_output_dir" "$_format")" _pl_flag="$(printf '%s' "$_pl_result" | head -n 1)" @@ -188,6 +188,7 @@ download_music() { enqueue "music" "$_url" \ "$_pl_flag" \ + --replace-in-metadata channel '\.$' '' \ --extract-audio \ --audio-format best \ --audio-quality 0 \ @@ -252,7 +253,7 @@ download_video() { restore_archive() { _output_dir="${XDG_MUSIC_DIR:-$HOME/Music}" _archive="${XDG_DOTFILES_DIR:-$HOME/.dotfiles}/global/Music/.music.txt" - _format="${_output_dir}/%(album_artist,artist|Unknown Artist)s/%(album|Unknown Album)s/%(title)s.%(ext)s" + _format="${_output_dir}/%(channel|Unknown Artist)s/%(album|Unknown Album)s/%(title)s.%(ext)s" [ ! -f "$_archive" ] && die "⛔ Archive not found" "$_archive" -- cgit v1.2.3