mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-04-22 23:05:07 -05:00
[youtube_live_chat] Fix URL
Bug introduced by 82e3f6ebda56c84166494e157e0f856467ca5581 :ci skip dl
This commit is contained in:
parent
b60419c51a
commit
9c3fe2ef80
@ -94,9 +94,12 @@ class YoutubeLiveChatReplayFD(FragmentFD):
|
|||||||
frag_index = offset = 0
|
frag_index = offset = 0
|
||||||
while continuation_id is not None:
|
while continuation_id is not None:
|
||||||
frag_index += 1
|
frag_index += 1
|
||||||
url = 'https://www.youtube.com/live_chat_replay?continuation=%s' % continuation_id
|
url = ''.join((
|
||||||
if frag_index > 1:
|
'https://www.youtube.com/live_chat_replay',
|
||||||
url += '&playerOffsetMs=%d&hidden=false&pbj=1' % max(offset - 5000, 0)
|
'/get_live_chat_replay' if frag_index > 1 else '',
|
||||||
|
'?continuation=%s' % continuation_id,
|
||||||
|
'&playerOffsetMs=%d&hidden=false&pbj=1' % max(offset - 5000, 0) if frag_index > 1 else ''))
|
||||||
|
print(url)
|
||||||
success, continuation_id, offset = download_and_parse_fragment(url, frag_index)
|
success, continuation_id, offset = download_and_parse_fragment(url, frag_index)
|
||||||
if not success:
|
if not success:
|
||||||
return False
|
return False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user