Skip to content

Commit

Permalink
Use default web server port 8989
Browse files Browse the repository at this point in the history
  • Loading branch information
tehkillerbee committed Mar 2, 2024
1 parent 49d6b74 commit 4b5e000
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mopidy_tidal/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def __init__(self, config, audio):
# pkce_enabled: If true, TIDAL session will use PKCE auth. Otherwise OAuth2 is used
self.auth_method: str = "OAUTH"
self.pkce_enabled: bool = False
# login_server_port: Port to use for login HTTP server, eg. localhost:<port>
self.login_server_port: Optional[int] = None
# login_server_port: Port to use for login HTTP server, eg. <host_ip>:<port>. Default <host_ip>:8989
self.login_server_port: int = 8989

@property
def session(self):
Expand Down Expand Up @@ -79,6 +79,7 @@ def on_start(self):
if self.auth_method == "PKCE":
self.pkce_enabled = True
self.login_server_port = self._tidal_config["login_server_port"]
logger.info("PKCE login web server port: %s", self.login_server_port)
self.login_method = self._tidal_config["login_method"]
if self.login_method == "AUTO":
# Add AUTO as alias to HACK login method
Expand Down

0 comments on commit 4b5e000

Please sign in to comment.