Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tehkillerbee committed Jan 28, 2024
1 parent c88a1cb commit 8683fa2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tidalapi/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def __init__(self, config: Config = Config()):
self.page = page.Page(self, "")
self.parse_page = self.page.parse

self.is_pkce = False # True if session is PKCE type, otherwise false
self.is_pkce = False # True if session is PKCE type, otherwise false

self.type_conversions: List[TypeRelation] = [
TypeRelation(
Expand Down Expand Up @@ -432,7 +432,9 @@ def login(self, username: str, password: str) -> bool:
self.user = user.User(self, user_id=body["userId"]).factory()
return True

def login_session_file(self, session_file: Path, do_pkce: Optional[bool] = False) -> bool:
def login_session_file(
self, session_file: Path, do_pkce: Optional[bool] = False
) -> bool:
"""Logs in to the TIDAL api using an existing OAuth/PKCE session file. If no
session json file exists, a new one will be created after successful login.
Expand Down Expand Up @@ -500,7 +502,7 @@ def login_pkce(self, fn_print: Callable[[str], None] = print) -> None:
self.is_pkce = True

# Swap the client_id and secret
#self.client_enable_hires()
# self.client_enable_hires()

def client_enable_hires(self):
self.config.client_id = self.config.client_id_pkce
Expand Down

0 comments on commit 8683fa2

Please sign in to comment.