mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-07-26 05:14:15 +09:00
Youtube: Use release_timestamp instead of just timestamp
Signed-off-by: Jon Doron <arilou@gmail.com>
This commit is contained in:
parent
1d7b3aa258
commit
a5325665d5
@ -1813,16 +1813,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
}
|
||||
|
||||
live_details = microformat.get('liveBroadcastDetails')
|
||||
broadcast_start_timestamp = None
|
||||
if live_details:
|
||||
broadcast_start_timestamp = live_details.get('startTimestamp')
|
||||
|
||||
if broadcast_start_timestamp:
|
||||
info['timestamp'] = parse_iso8601(broadcast_start_timestamp)
|
||||
else:
|
||||
info['upload_date'] = unified_strdate(
|
||||
microformat.get('uploadDate')
|
||||
or search_meta('uploadDate'))
|
||||
if broadcast_start_timestamp:
|
||||
info['release_timestamp'] = parse_iso8601(broadcast_start_timestamp)
|
||||
|
||||
pctr = try_get(
|
||||
player_response,
|
||||
|
Loading…
x
Reference in New Issue
Block a user