From b9300883072460859e281e0cd5f009cdbe5ed693 Mon Sep 17 00:00:00 2001 From: kenny Date: Sun, 7 Dec 2025 14:47:36 +0200 Subject: [PATCH] Solved openssl error, but no output at all right now so it's hard to tell if the script works --- .cache | 1 + README.md | 2 +- access_token.txt | 1 + devenv.nix | 4 ++-- 4 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .cache create mode 100644 access_token.txt diff --git a/.cache b/.cache new file mode 100644 index 0000000..528fec5 --- /dev/null +++ b/.cache @@ -0,0 +1 @@ +{"access_token": "BQC64RdeRNfYijXfatJ048WmZrdMhXtsnIWw2i6ER3xIfrDG6Hfa9g_soJejrurk97aXbMF9Wq6TZraGU6EzGTt7-zsFAXVT6fZ-sIxRKN_2-x8FLmEBYjxbRRmczP8AVU494cnsDMUaAk6JG3rmmEIh1W2xYb2fIje-aAnHxMEX-iz4vb0duCHOfiy7pFl73wP4mQA7TVcNbjL6a_LGmKtFhJ6zK7Hz_7yLKa9EQAPrZ_rJW_Utansh3tt0jWNc1360gMZHXQ", "token_type": "Bearer", "expires_in": 3600, "refresh_token": "AQDzbnQ-vBzwkvSnw4KctHbMzW_5Bq2MrgqFOgVsRIyh3VUcu88VkejRqMYZ1xdTSmJmDTF_Ak9Db9LLWEiwxj_9DvoHz3hEgulCZYvVIwGPxi3S6-NoIps_waooXfvn3P4", "scope": "playlist-modify-private user-library-read", "expires_at": 1765114882} \ No newline at end of file diff --git a/README.md b/README.md index 60da709..503d69b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Spotify liked playlist downloader - [X] Working SpotifyAPI with ngrok+HTTPS -- [ ] Fix this in the openssl call: +- [X] Fix this in the openssl call: /nix/store/dzz1xf4nxx8v42pz5sxxx62r0jjpl0qf-craftcerts-script: line 5: 2: command not found req: Extra option: "1" req: Use -help for summary. diff --git a/access_token.txt b/access_token.txt new file mode 100644 index 0000000..1677277 --- /dev/null +++ b/access_token.txt @@ -0,0 +1 @@ +BQC64RdeRNfYijXfatJ048WmZrdMhXtsnIWw2i6ER3xIfrDG6Hfa9g_soJejrurk97aXbMF9Wq6TZraGU6EzGTt7-zsFAXVT6fZ-sIxRKN_2-x8FLmEBYjxbRRmczP8AVU494cnsDMUaAk6JG3rmmEIh1W2xYb2fIje-aAnHxMEX-iz4vb0duCHOfiy7pFl73wP4mQA7TVcNbjL6a_LGmKtFhJ6zK7Hz_7yLKa9EQAPrZ_rJW_Utansh3tt0jWNc1360gMZHXQ \ No newline at end of file diff --git a/devenv.nix b/devenv.nix index 9ac5b4e..4700dda 100644 --- a/devenv.nix +++ b/devenv.nix @@ -8,8 +8,8 @@ mkdir -p ssl # Use -p to avoid error if the directory exists cd ssl if [ ! -f ./openssl.cnf ]; then - echo "Creating openssl..." - openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.cert -days 365 -nodes -config ../openssl.cnf 1&2 > /dev/null + echo "Creating certificates..." + openssl req -x509 -newkey rsa:2048 -keyout server.key -out server.cert -days 365 -nodes -config ../openssl.cnf > /dev/null 2>/dev/null exit 1 fi '';