Skip to content

Commit

Permalink
Merge pull request #254 from tamland/feature/v0.7.6
Browse files Browse the repository at this point in the history
Feature/v0.7.6
tehkillerbee authored Apr 15, 2024
2 parents 4e55860 + e477fce commit 288fc1e
Showing 5 changed files with 93 additions and 85 deletions.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
History
=======

v0.7.6
------
* Fix: Set token type correctly for OAuth/PKCE authentication - tehkillerbee_
* Revert to using enums with str support for relevant classes - tehkillerbee_, exislow_
* Removed return types from method names for consistency, added deprecation warnings - exislow_

v0.7.5
------
* Fix: Use wide image when no square picture is available. - tehkillerbee_
154 changes: 77 additions & 77 deletions poetry.lock
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tidalapi"
version = "0.7.5"
version = "0.7.6"
description = "Unofficial API for TIDAL music streaming service."
authors = ["Thomas Amland <thomas.amland@googlemail.com>"]
maintainers = ["tehkillerbee <tehkillerbee@users.noreply.github.com>"]
2 changes: 1 addition & 1 deletion tidalapi/__init__.py
Original file line number Diff line number Diff line change
@@ -19,4 +19,4 @@
User,
)

__version__ = "0.7.5"
__version__ = "0.7.6"
14 changes: 8 additions & 6 deletions tidalapi/session.py
Original file line number Diff line number Diff line change
@@ -711,12 +711,14 @@ def token_refresh(self, refresh_token: str) -> bool:
params = {
"grant_type": "refresh_token",
"refresh_token": refresh_token,
"client_id": self.config.client_id_pkce
if self.is_pkce
else self.config.client_id,
"client_secret": self.config.client_secret_pkce
if self.is_pkce
else self.config.client_secret,
"client_id": (
self.config.client_id_pkce if self.is_pkce else self.config.client_id
),
"client_secret": (
self.config.client_secret_pkce
if self.is_pkce
else self.config.client_secret
),
}

request = self.request_session.post(url, params)

0 comments on commit 288fc1e

Please sign in to comment.