From 5328e20a7ee864dd28f68df0ced4c3ce3f0fd5c7 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 21 Feb 2026 22:58:57 +0900 Subject: modified rmpc/config.ron, modified scripts/on_song_change, modified bin/qndl --- ar/.local/bin/qndl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ar/.local/bin/qndl') diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl index 2757eb8..ff18e17 100755 --- a/ar/.local/bin/qndl +++ b/ar/.local/bin/qndl @@ -33,13 +33,13 @@ case $type in download_type="music" output_dir="${XDG_MUSIC_DIR:-${HOME}/Music}" archive_file="${XDG_DOTFILES_DIR:-${HOME}/.dotfiles}/global/Music/.music.txt" - ytdl_output_format="${output_dir}/%(artist|)s%(artist& - |)s%(title)s.%(ext)s" + ytdl_output_format="${output_dir}/%(album_artist,artist|Unknown Artist)s/%(album|Unknown Album)s/%(title)s.%(ext)s" ytdl_cmd_base="$ytdl_cmd_base --audio-format best --audio-quality 0 --download-archive \"$archive_file\" --extract-audio --recode-video mp3" ;; -r | --restore | r | restore) output_dir="${XDG_MUSIC_DIR:-${HOME}/Music}" archive_file="${XDG_DOTFILES_DIR:-${HOME}/.dotfiles}/global/Music/.music.txt" - ytdl_output_format="${output_dir}/%(artist|)s%(artist& - |)s%(title)s.%(ext)s" + ytdl_output_format="${output_dir}/%(album_artist,artist|Unknown Artist)s/%(album|Unknown Album)s/%(title)s.%(ext)s" ytdl_cmd_base="$ytdl_cmd_base --audio-format best --audio-quality 0 --extract-audio --recode-video mp3" ytdl_cmd="$ytdl_cmd_base --output \"$ytdl_output_format\"" [ ! -f "$archive_file" ] && exit 1 @@ -127,4 +127,4 @@ tsp -D "$idnum" notify-send "✅ $download_type download complete:" "$url" || notify-send "❌ Faild to download:" "$url" # Conditionally update the music database if the download type is music -[ "$download_type" = "music" ] && tsp -D "$idnum" bash -c "mpc update" +[ "$download_type" = "music" ] && tsp -D "$idnum" bash -c "mpc update --wait && find /home/si/Music -name '*.mp3' | sed 's|/home/si/Music/||' | sort > /home/si/.config/mpd/playlists/entire.m3u" -- cgit v1.2.3