mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-18 09:04:51 -04:00
Debug the client response
This commit is contained in:
parent
0b70932daa
commit
88f1c5c082
1 changed files with 8 additions and 2 deletions
|
@ -178,7 +178,9 @@ class QobuzClient(Client):
|
||||||
return self._api_search(query, media_type, limit)
|
return self._api_search(query, media_type, limit)
|
||||||
|
|
||||||
def get(self, item_id: Union[str, int], media_type: str = "album") -> dict:
|
def get(self, item_id: Union[str, int], media_type: str = "album") -> dict:
|
||||||
return self._api_get(media_type, item_id=item_id)
|
resp = self._api_get(media_type, item_id=item_id)
|
||||||
|
logger.debug(resp)
|
||||||
|
return resp
|
||||||
|
|
||||||
def get_file_url(self, item_id, quality=3) -> dict:
|
def get_file_url(self, item_id, quality=3) -> dict:
|
||||||
return self._api_get_file_url(item_id, quality=quality)
|
return self._api_get_file_url(item_id, quality=quality)
|
||||||
|
@ -454,6 +456,7 @@ class DeezerClient(Client):
|
||||||
albums = self.session.get(f"{url}/albums").json()
|
albums = self.session.get(f"{url}/albums").json()
|
||||||
item["albums"] = albums["data"]
|
item["albums"] = albums["data"]
|
||||||
|
|
||||||
|
logger.debug(item)
|
||||||
return item
|
return item
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
@ -528,7 +531,9 @@ class TidalClient(Client):
|
||||||
:param item_id:
|
:param item_id:
|
||||||
:param media_type:
|
:param media_type:
|
||||||
"""
|
"""
|
||||||
return self._api_get(item_id, media_type)
|
resp = self._api_get(item_id, media_type)
|
||||||
|
logger.debug(resp)
|
||||||
|
return resp
|
||||||
|
|
||||||
def search(self, query: str, media_type: str = "album", limit: int = 100) -> dict:
|
def search(self, query: str, media_type: str = "album", limit: int = 100) -> dict:
|
||||||
"""Search for a query.
|
"""Search for a query.
|
||||||
|
@ -856,6 +861,7 @@ class SoundCloudClient(Client):
|
||||||
else:
|
else:
|
||||||
raise Exception(id)
|
raise Exception(id)
|
||||||
|
|
||||||
|
logger.debug(resp)
|
||||||
return resp
|
return resp
|
||||||
|
|
||||||
def get_file_url(self, track: dict, quality) -> dict:
|
def get_file_url(self, track: dict, quality) -> dict:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue