diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-04 23:55:37 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-04 23:55:37 +0900 |
| commit | 58b4247a21908894659472df1c7da3aa55d09d7f (patch) | |
| tree | d6cddd0e8749d68f8d0b1c673e6d1c8bad7f5636 /ar | |
| parent | 3d86b528df41750d8b8730b8457b537f9c2f7425 (diff) | |
modified playlists/entire.m3u, modified bin/qndl, modified Music/.music.txt
Diffstat (limited to 'ar')
| -rw-r--r-- | ar/.config/mpd/playlists/entire.m3u | 1 | ||||
| -rwxr-xr-x | ar/.local/bin/qndl | 7 |
2 files changed, 5 insertions, 3 deletions
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" |
