diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-26 02:18:09 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-26 02:18:09 +0900 |
| commit | 2ff3a2e98363423fd0fceac2708e8050b266a58e (patch) | |
| tree | 99d07be215a58662e521a122126be58c9daeb82b /ar/.local/bin/qndl | |
| parent | 9c9f856b5ba1501d5743712e198504eaa9539b20 (diff) | |
Diffstat (limited to 'ar/.local/bin/qndl')
| -rwxr-xr-x | ar/.local/bin/qndl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ar/.local/bin/qndl b/ar/.local/bin/qndl index d9381d5..6cf3053 100755 --- a/ar/.local/bin/qndl +++ b/ar/.local/bin/qndl @@ -182,7 +182,9 @@ download_music() { _url="$1" _output_dir="${XDG_MUSIC_DIR:-$HOME/Music}" _archive="${XDG_DOTFILES_DIR:-$HOME/.dotfiles}/global/Music/.music.txt" + _titles="${XDG_DOTFILES_DIR:-$HOME/.dotfiles}/global/Music/.music_titles.txt" _format="${_output_dir}/%(artists.0|Unknown Artist)s/%(album|Unknown Album)s/%(title)s.%(ext)s" + _title_fmt="$(printf '%%(id)s\t%%(artists.0|Unknown Artist)s - %%(title)s')" _pl_result="$(handle_playlist "$_url" "music" "$_output_dir" "$_format")" _pl_flag="$(printf '%s' "$_pl_result" | head -n 1)" @@ -197,6 +199,7 @@ download_music() { --audio-format mp3 \ --audio-quality 0 \ --download-archive "$_archive" \ + --print-to-file "$_title_fmt" "$_titles" \ --output "$_fmt" } |
