mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-03-14 14:32:49 +03:00
Getting response is a method and not an attribute
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user