use 127.0.0.1 instead of localhost to meet new spotify URI criteria (#116)

This commit is contained in:
Axel
2025-04-09 22:14:15 +02:00
committed by GitHub
parent a5afd975f0
commit e62a8a80cb
2 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ spotify:
client_id: your_client_id
client_secret: your_client_secret
username: your_spotify_username
redirect_uri: http://localhost:8888/callback
redirect_uri: http://127.0.0.1:8888/callback
open_browser: True # Set to False if using a headless server environment

View File

@@ -23,7 +23,7 @@ def test_open_spotify_session(mocker):
"username": "test_user",
"client_id": "test_client_id",
"client_secret": "test_client_secret",
"redirect_uri": "http://localhost/",
"redirect_uri": "http://127.0.0.1/",
"open_browser": True,
}
@@ -40,7 +40,7 @@ def test_open_spotify_session(mocker):
scope=SPOTIFY_SCOPES,
client_id="test_client_id",
client_secret="test_client_secret",
redirect_uri="http://localhost/",
redirect_uri="http://127.0.0.1/",
requests_timeout=2,
open_browser=True,
)
@@ -64,7 +64,7 @@ def test_open_spotify_session_oauth_error(mocker):
"username": "test_user",
"client_id": "test_client_id",
"client_secret": "test_client_secret",
"redirect_uri": "http://localhost/",
"redirect_uri": "http://127.0.0.1/",
}
# Mock sys.exit to prevent the test from exiting