diff --git a/web_server.py b/web_server.py index d0d62c3b..99cd731e 100644 --- a/web_server.py +++ b/web_server.py @@ -2626,9 +2626,13 @@ def auth_spotify(): # Detect if accessing remotely host = request.host.split(':')[0] is_remote = host not in ['127.0.0.1', 'localhost'] + is_docker = os.path.exists('/.dockerenv') - if is_remote: - # Show instructions for remote access + if is_remote or is_docker: + # Show instructions for remote/docker access + page_title = "🔐 Spotify Authentication (Remote/Docker)" + step_1_text = "Click the link below to authenticate with Spotify" + return f''' @@ -2651,8 +2655,8 @@ def auth_spotify(): -

🔐 Spotify Authentication (Remote Access)

-

Step 1: Click the link below to authenticate with Spotify

+

{page_title}

+

Step 1: {step_1_text}

{auth_url}


Step 2: After authorizing, you'll see a blank page. The URL will look like: