From aa201c3be28d9fde089e49486f2b59b2af83ca5e Mon Sep 17 00:00:00 2001 From: Kamil Date: Tue, 10 Dec 2024 15:47:38 +0000 Subject: [PATCH] add new environment variables for spotDL configuration and output format control --- changelogs/0.1.9.md | 14 ++++++++++++++ readme.md | 2 ++ 2 files changed, 16 insertions(+) diff --git a/changelogs/0.1.9.md b/changelogs/0.1.9.md index ce4aca9..093d782 100644 --- a/changelogs/0.1.9.md +++ b/changelogs/0.1.9.md @@ -78,6 +78,20 @@ MUSIC_STORAGE_BASE_PATH = '/storage/media/music' ### 🆕 Log Viewer Under the `Admin` Page there is now a tab called `Logs` from where you can view the current logs, change the log-level on demand and copy a prepared markdown snippet ready to be pasted into a GitHub issue. +### 🆕 New env var´s, a bit more control over spotDL +#### `SPOTDL_PROXY` +Set a Proxy for spotDL. See [https://spotdl.readthedocs.io/en/latest/usage/#command-line-options](https://spotdl.readthedocs.io/en/latest/usage/#command-line-options) +#### `SPOTDL_OUTPUT_FORMAT` +Set the output folder and file name format for downloaded tracks via spotDL. Not all variables, which are supported by spotDL are supported by Jellyplist. +- `{title}` +- `{artist}` +- `{artists}` +- `{album}` + +This way you will have a bit more controler over how the files are stored. +The complete output path is joined from `MUSIC_STORAGE_BASE_PATH` and `SPOTDL_OUTPUT_FORMAT` + + ### Other changes, improvements and fixes - Fix for #38 and #22 , where the manual task starting was missing a return value diff --git a/readme.md b/readme.md index 5b6d902..7422ab3 100644 --- a/readme.md +++ b/readme.md @@ -41,6 +41,8 @@ JELLYPLIST_DB_PASSWORD = jellyplist MUSIC_STORAGE_BASE_PATH = '/storage/media/music' # The base path where your music library is located. Must be the same value as your music library in jellyfin ### Optional: +# SPOTDL_PROXY = http://proxy:8080 +# SPOTDL_OUTPUT_FORMAT = "/{artist}/{artists} - {title}" # Supported variables: {title}, {artist},{artists}, {album}, Will be joined with to get a complete path # SEARCH_JELLYFIN_BEFORE_DOWNLOAD = false # defaults to true, before attempting to do a download with spotDL , the song will be searched first in the local library