mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-23 19:47:08 -04:00
wrap headers in str() to fix mismatched type error on download (#720)
This commit is contained in:
parent
4c98dbd44e
commit
e2e524ee7d
1 changed files with 6 additions and 6 deletions
|
@ -162,20 +162,20 @@ class QobuzClient(Client):
|
||||||
f.qobuz.secrets = c.secrets
|
f.qobuz.secrets = c.secrets
|
||||||
f.set_modified()
|
f.set_modified()
|
||||||
|
|
||||||
self.session.headers.update({"X-App-Id": c.app_id})
|
self.session.headers.update({"X-App-Id": str(c.app_id)})
|
||||||
self.secret = await self._get_valid_secret(c.secrets)
|
self.secret = await self._get_valid_secret(c.secrets)
|
||||||
|
|
||||||
if c.use_auth_token:
|
if c.use_auth_token:
|
||||||
params = {
|
params = {
|
||||||
"user_id": c.email_or_userid,
|
"user_id": c.email_or_userid,
|
||||||
"user_auth_token": c.password_or_token,
|
"user_auth_token": c.password_or_token,
|
||||||
"app_id": c.app_id,
|
"app_id": str(c.app_id),
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
params = {
|
params = {
|
||||||
"email": c.email_or_userid,
|
"email": c.email_or_userid,
|
||||||
"password": c.password_or_token,
|
"password": c.password_or_token,
|
||||||
"app_id": c.app_id,
|
"app_id": str(c.app_id),
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.debug("Request params %s", params)
|
logger.debug("Request params %s", params)
|
||||||
|
@ -203,7 +203,7 @@ class QobuzClient(Client):
|
||||||
|
|
||||||
c = self.config.session.qobuz
|
c = self.config.session.qobuz
|
||||||
params = {
|
params = {
|
||||||
"app_id": c.app_id,
|
"app_id": str(c.app_id),
|
||||||
f"{media_type}_id": item,
|
f"{media_type}_id": item,
|
||||||
# Do these matter?
|
# Do these matter?
|
||||||
"limit": 500,
|
"limit": 500,
|
||||||
|
@ -236,7 +236,7 @@ class QobuzClient(Client):
|
||||||
c = self.config.session.qobuz
|
c = self.config.session.qobuz
|
||||||
page_limit = 500
|
page_limit = 500
|
||||||
params = {
|
params = {
|
||||||
"app_id": c.app_id,
|
"app_id": str(c.app_id),
|
||||||
"label_id": label_id,
|
"label_id": label_id,
|
||||||
"limit": page_limit,
|
"limit": page_limit,
|
||||||
"offset": 0,
|
"offset": 0,
|
||||||
|
@ -254,7 +254,7 @@ class QobuzClient(Client):
|
||||||
self._api_request(
|
self._api_request(
|
||||||
epoint,
|
epoint,
|
||||||
{
|
{
|
||||||
"app_id": c.app_id,
|
"app_id": str(c.app_id),
|
||||||
"label_id": label_id,
|
"label_id": label_id,
|
||||||
"limit": page_limit,
|
"limit": page_limit,
|
||||||
"offset": offset,
|
"offset": offset,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue