mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-07-24 20:34:14 +09:00
Merge a5325665d50804f43ebbcb7a87f476ebec8025c8 into 384f632e8a9b61e864a26678d85b2b39933b9bae
This commit is contained in:
commit
d3a613e0d9
@ -33,6 +33,7 @@ from ..utils import (
|
||||
mimetype2ext,
|
||||
parse_codecs,
|
||||
parse_duration,
|
||||
parse_iso8601,
|
||||
qualities,
|
||||
remove_start,
|
||||
smuggle_url,
|
||||
@ -1992,6 +1993,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
'is_live': is_live,
|
||||
}
|
||||
|
||||
live_details = microformat.get('liveBroadcastDetails')
|
||||
if live_details:
|
||||
broadcast_start_timestamp = live_details.get('startTimestamp')
|
||||
if broadcast_start_timestamp:
|
||||
info['release_timestamp'] = parse_iso8601(broadcast_start_timestamp)
|
||||
|
||||
pctr = try_get(
|
||||
player_response,
|
||||
lambda x: x['captions']['playerCaptionsTracklistRenderer'], dict)
|
||||
|
Loading…
x
Reference in New Issue
Block a user