mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-14 04:05:16 +00:00
print twitch gql api errors when extracting chat
This commit is contained in:
@@ -581,6 +581,11 @@ class TwitchVodIE(TwitchBaseIE):
|
|||||||
# chat_history.clear()
|
# chat_history.clear()
|
||||||
break
|
break
|
||||||
|
|
||||||
|
response_errors = traverse_obj(response, (slice, 'errors'))
|
||||||
|
|
||||||
|
if response_errors is not None and len(response_errors) > 0:
|
||||||
|
self.report_warning(f"Error response recevied for fetching next chat history fragment: {response_errors}")
|
||||||
|
|
||||||
comments_obj = traverse_obj(response, (0, 'data', 'video', 'comments'))
|
comments_obj = traverse_obj(response, (0, 'data', 'video', 'comments'))
|
||||||
chat_history.extend(traverse_obj(comments_obj, ('edges', slice, 'node')))
|
chat_history.extend(traverse_obj(comments_obj, ('edges', slice, 'node')))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user