mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-22 14:24:03 -07:00
Merge a5325665d5
into 384f632e8a
This commit is contained in:
commit
d3a613e0d9
1 changed files with 7 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue