mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
parent
b60419c51a
commit
9c3fe2ef80
2 changed files with 7 additions and 4 deletions
|
@ -94,9 +94,12 @@ def download_and_parse_fragment(url, frag_index):
|
|||
frag_index = offset = 0
|
||||
while continuation_id is not None:
|
||||
frag_index += 1
|
||||
url = 'https://www.youtube.com/live_chat_replay?continuation=%s' % continuation_id
|
||||
if frag_index > 1:
|
||||
url += '&playerOffsetMs=%d&hidden=false&pbj=1' % max(offset - 5000, 0)
|
||||
url = ''.join((
|
||||
'https://www.youtube.com/live_chat_replay',
|
||||
'/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)
|
||||
if not success:
|
||||
return False
|
||||
|
|
|
@ -3404,7 +3404,7 @@ def _extract_uploader(data):
|
|||
uploader['uploader_url'] = urljoin(
|
||||
'https://www.youtube.com/',
|
||||
try_get(owner, lambda x: x['navigationEndpoint']['browseEndpoint']['canonicalBaseUrl'], compat_str))
|
||||
return {k:v for k, v in uploader.items() if v is not None}
|
||||
return {k: v for k, v in uploader.items() if v is not None}
|
||||
|
||||
def _extract_from_tabs(self, item_id, webpage, data, tabs, identity_token):
|
||||
playlist_id = title = description = channel_url = channel_name = channel_id = None
|
||||
|
|
Loading…
Reference in a new issue