From e2e524ee7d5742a7d968637579d83f6daa341d79 Mon Sep 17 00:00:00 2001 From: samuelmarinsoto <130113856+samuelmarinsoto@users.noreply.github.com> Date: Sun, 1 Sep 2024 11:37:01 -0600 Subject: [PATCH] wrap headers in str() to fix mismatched type error on download (#720) --- streamrip/client/qobuz.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/streamrip/client/qobuz.py b/streamrip/client/qobuz.py index c181f9d..411979e 100644 --- a/streamrip/client/qobuz.py +++ b/streamrip/client/qobuz.py @@ -162,20 +162,20 @@ class QobuzClient(Client): f.qobuz.secrets = c.secrets 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) if c.use_auth_token: params = { "user_id": c.email_or_userid, "user_auth_token": c.password_or_token, - "app_id": c.app_id, + "app_id": str(c.app_id), } else: params = { "email": c.email_or_userid, "password": c.password_or_token, - "app_id": c.app_id, + "app_id": str(c.app_id), } logger.debug("Request params %s", params) @@ -203,7 +203,7 @@ class QobuzClient(Client): c = self.config.session.qobuz params = { - "app_id": c.app_id, + "app_id": str(c.app_id), f"{media_type}_id": item, # Do these matter? "limit": 500, @@ -236,7 +236,7 @@ class QobuzClient(Client): c = self.config.session.qobuz page_limit = 500 params = { - "app_id": c.app_id, + "app_id": str(c.app_id), "label_id": label_id, "limit": page_limit, "offset": 0, @@ -254,7 +254,7 @@ class QobuzClient(Client): self._api_request( epoint, { - "app_id": c.app_id, + "app_id": str(c.app_id), "label_id": label_id, "limit": page_limit, "offset": offset,