diff --git a/.config/streamrip/config.toml b/.config/streamrip/config.toml index 890c64e..c0a78c6 100644 --- a/.config/streamrip/config.toml +++ b/.config/streamrip/config.toml @@ -20,9 +20,12 @@ quality = 4 # This will download booklet pdfs that are included with some albums download_booklets = true -email = "" -# This is an md5 hash of the plaintext password -password = "" +# Authenticate to Qobuz using auth token? Value can be true/false only +use_auth_token = true +# Enter your userid if the above use_auth_token is set to true, else enter your email +email_or_userid = "${QOBUZ_USERID}}" +# Enter your auth token if the above use_auth_token is set to true, else enter the md5 hash of your plaintext password +password_or_token = "${QOBUZ_TOKEN}}" # Do not change app_id = "" # Do not change diff --git a/README.md b/README.md index 20a3610..e65003e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # streamrip-docker ```sh -docker run -it -e DEEZER_NUTS=$TOKEN git.cesium.pw/niku/streamrip-docker +docker run -it -e DEEZER_NUTS=$TOKEN -e QOBUZ_USERID=$QOBUZ_USERID -e QOBUZ_TOKEN=$QOBUZ_TOKEN git.cesium.pw/niku/streamrip-docker ``` \ No newline at end of file diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index ec9df9e..19f51fa 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -2,4 +2,7 @@ sed -i "s/\${DEEZER_NUTS}/$DEEZER_NUTS/g" /root/.config/streamrip/config.toml +sed -i "s/\${QOBUZ_USERID}/$QOBUZ_USERID/g" /root/.config/streamrip/config.toml +sed -i "s/\${QOBUZ_TOKEN}/$QOBUZ_TOKEN/g" /root/.config/streamrip/config.toml + tail -f /dev/null