From 6e1ee572d5ddcdefb252a1604dcf7a30695ff60f Mon Sep 17 00:00:00 2001 From: dmunozv04 <39565245+dmunozv04@users.noreply.github.com> Date: Fri, 3 Nov 2023 15:51:48 +0100 Subject: [PATCH] Print video id when logging the error --- iSponsorBlockTV/api_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iSponsorBlockTV/api_helpers.py b/iSponsorBlockTV/api_helpers.py index 4698c71..afa4096 100644 --- a/iSponsorBlockTV/api_helpers.py +++ b/iSponsorBlockTV/api_helpers.py @@ -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):