Skip to content

Commit

Permalink
fix #744 (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
punowo authored Oct 4, 2024
1 parent e2e524e commit 46b570d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions streamrip/client/qobuz.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,7 @@ async def login(self):
f.set_modified()

self.session.headers.update({"X-App-Id": str(c.app_id)})
self.secret = await self._get_valid_secret(c.secrets)


if c.use_auth_token:
params = {
"user_id": c.email_or_userid,
Expand Down Expand Up @@ -195,6 +194,8 @@ async def login(self):
uat = resp["user_auth_token"]
self.session.headers.update({"X-User-Auth-Token": uat})

self.secret = await self._get_valid_secret(c.secrets)

self.logged_in = True

async def get_metadata(self, item: str, media_type: str):
Expand Down

0 comments on commit 46b570d

Please sign in to comment.