summaryrefslogtreecommitdiff
path: root/ar/.local
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-02-21 22:58:57 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-02-21 22:58:57 +0900
commit5328e20a7ee864dd28f68df0ced4c3ce3f0fd5c7 (patch)
treed8fc7f75d56d52a6009fcd88733c092551017464 /ar/.local
parent4612b5e3772ced0f1c3d77c425ab6f5fb4c93296 (diff)
modified rmpc/config.ron, modified scripts/on_song_change, modified bin/qndlHEADmaster
Diffstat (limited to 'ar/.local')
-rwxr-xr-xar/.local/bin/qndl6
1 files changed, 3 insertions, 3 deletions
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"