Skip to content

Commit

Permalink
Print video id when logging the error
Browse files Browse the repository at this point in the history
  • Loading branch information
dmunozv04 committed Nov 3, 2023
1 parent df118c9 commit 6e1ee57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iSponsorBlockTV/api_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def get_segments(self, vid_id):
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):
Expand Down

0 comments on commit 6e1ee57

Please sign in to comment.