From ae6e4e25aa779b51c6bd7c2e07ef4bb3a09561b3 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Sat, 28 Nov 2020 02:19:38 +0200 Subject: [PATCH] make sure playerOffsetMs is positive --- youtube_dlc/downloader/youtube_live_chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dlc/downloader/youtube_live_chat.py b/youtube_dlc/downloader/youtube_live_chat.py index b333afa5bd..223b4b81c1 100644 --- a/youtube_dlc/downloader/youtube_live_chat.py +++ b/youtube_dlc/downloader/youtube_live_chat.py @@ -61,7 +61,7 @@ class YoutubeLiveChatReplayFD(FragmentFD): else: url = ('https://www.youtube.com/live_chat_replay/get_live_chat_replay' + '?continuation={}'.format(continuation_id) - + '&playerOffsetMs={}'.format(offset - 5000) + + '&playerOffsetMs={}'.format(max(offset - 5000, 0)) + '&hidden=false' + '&pbj=1') success, raw_fragment = dl_fragment(url)