mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-07-26 05:14:15 +09:00
Merge a5325665d50804f43ebbcb7a87f476ebec8025c8 into 384f632e8a9b61e864a26678d85b2b39933b9bae
This commit is contained in:
commit
d3a613e0d9
@ -33,6 +33,7 @@ from ..utils import (
|
|||||||
mimetype2ext,
|
mimetype2ext,
|
||||||
parse_codecs,
|
parse_codecs,
|
||||||
parse_duration,
|
parse_duration,
|
||||||
|
parse_iso8601,
|
||||||
qualities,
|
qualities,
|
||||||
remove_start,
|
remove_start,
|
||||||
smuggle_url,
|
smuggle_url,
|
||||||
@ -1992,6 +1993,12 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
|||||||
'is_live': is_live,
|
'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(
|
pctr = try_get(
|
||||||
player_response,
|
player_response,
|
||||||
lambda x: x['captions']['playerCaptionsTracklistRenderer'], dict)
|
lambda x: x['captions']['playerCaptionsTracklistRenderer'], dict)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user