mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 01:42:30 -05:00
Audio changes (#5593)
* Squash tested commits * remove the code jack is concerned about * Apply suggestions from code review * more log lines * more log lines * format * formatting * style(Rename Xms and Xmx mentions): Rename Xms and Xmx to more use friendly names - Change Xms to "Initial Heapsize" - Change Xmx to "Max Heapsize" Signed-off-by: Draper <27962761+Drapersniper@users.noreply.github.com>
This commit is contained in:
@@ -102,7 +102,7 @@ class SpotifyWrapper:
|
||||
async with self.session.request("GET", url, params=params, headers=headers) as r:
|
||||
data = await r.json(loads=json.loads)
|
||||
if r.status != 200:
|
||||
log.verbose("Issue making GET request to %r: [%d] %r", url, r.status, data)
|
||||
log.verbose("Issue making GET request to %r: [%s] %r", url, r.status, data)
|
||||
return data
|
||||
|
||||
async def update_token(self, new_token: Mapping[str, str]):
|
||||
@@ -156,7 +156,7 @@ class SpotifyWrapper:
|
||||
async with self.session.post(url, data=payload, headers=headers) as r:
|
||||
data = await r.json(loads=json.loads)
|
||||
if r.status != 200:
|
||||
log.verbose("Issue making POST request to %r: [%d] %r", url, r.status, data)
|
||||
log.verbose("Issue making POST request to %r: [%s] %r", url, r.status, data)
|
||||
return data
|
||||
|
||||
async def make_get_call(self, url: str, params: MutableMapping) -> MutableMapping:
|
||||
|
||||
Reference in New Issue
Block a user