commit a5dd657c10ed9672933072e058b6bee1fc3da66c parent 75817a6502c9c8ee4b0888a55e0c3f9896b10527 Author: AndrewLockVI <andrew@laack.co> Date: Sun, 9 Mar 2025 16:59:41 -0500 Updated install script for spotdl and added script for downloading from spotify Diffstat:
| M | .gitignore | | | 2 | ++ |
| A | download-spotify.sh | | | 14 | ++++++++++++++ |
| M | install.sh | | | 6 | ++++++ |
3 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore @@ -1 +1,3 @@ postInstallPrivate.sh +output/* +resources/download.txt diff --git a/download-spotify.sh b/download-spotify.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# download playlists (or albums) from ./resources/download.txt using spotdl + +LS=$(cat $HOME/bin/resources/download.txt) + +for item in $LS; do + python3 -m spotdl $item --output "$HOME/bin/output/{artist}/{album}/{title}.mp3" +done + +# show drag and drop of output directory. +# this is useful if you have a web interface to upload the files to. + +dragon $HOME/bin/output/* diff --git a/install.sh b/install.sh @@ -226,3 +226,9 @@ doas apk add librewolf # doas apk add npm # doas npm install -g tree-sitter # yarn global add tree-sitter-cli + +# convert images into a pdf +# it would probably be better to use imagemagick via convert +# doas apk add py3-img2pdf + +pip install spotdl --break-system-packages