Print video id when logging the error

This commit is contained in:
dmunozv04
2023-11-03 15:51:48 +01:00
parent df118c967d
commit 6e1ee572d5

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. 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):