Getting response is a method and not an attribute

This commit is contained in:
dmunozv04
2023-11-03 15:57:39 +01:00
parent 6e1ee572d5
commit 4f4d990544

View File

@@ -115,7 +115,7 @@ class ApiHelper:
async with self.web_session.get(url, headers=headers, params=params) as response:
response_json = await response.json()
if(response.status != 200):
print(f"Error getting segments for video {vid_id}, hashed as {vid_id_hashed}. Code: {response.status} - {response.text}")
print(f"Error getting segments for video {vid_id}, hashed as {vid_id_hashed}. Code: {response.status} - {response.text()}")
return ([], True)
for i in response_json:
if str(i["videoID"]) == str(vid_id):