mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2026-03-14 06:22:56 +03:00
Log errors when gettting segments properly. Also forgot to remove a print
This commit is contained in:
@@ -115,7 +115,8 @@ 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()}")
|
||||
response_text = await 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):
|
||||
|
||||
@@ -46,7 +46,7 @@ class YtLoungeApi(pyytlounge.YtLoungeApi):
|
||||
|
||||
# Process a lounge subscription event
|
||||
def _process_event(self, event_id: int, event_type: str, args):
|
||||
print(f"YtLoungeApi.__process_event({event_id}, {event_type}, {args})")
|
||||
#print(f"YtLoungeApi.__process_event({event_id}, {event_type}, {args})")
|
||||
# (Re)start the watchdog
|
||||
try:
|
||||
self.subscribe_task_watchdog.cancel()
|
||||
|
||||
Reference in New Issue
Block a user