mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-21 23:33:10 +00:00
make sure playerOffsetMs is positive
This commit is contained in:
parent
93201d50aa
commit
ae6e4e25aa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue