mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-12 14:26:49 +01:00
[youtube] Show if video was a live stream in info
This commit is contained in:
parent
e094cec18c
commit
f76ede8ee4
@ -801,6 +801,7 @@ # OUTPUT TEMPLATE
|
|||||||
- `comment_count` (numeric): Number of comments on the video
|
- `comment_count` (numeric): Number of comments on the video
|
||||||
- `age_limit` (numeric): Age restriction for the video (years)
|
- `age_limit` (numeric): Age restriction for the video (years)
|
||||||
- `is_live` (boolean): Whether this video is a live stream or a fixed-length video
|
- `is_live` (boolean): Whether this video is a live stream or a fixed-length video
|
||||||
|
- `was_live` (boolean): Whether this video was originally a live stream
|
||||||
- `start_time` (numeric): Time in seconds where the reproduction should start, as specified in the URL
|
- `start_time` (numeric): Time in seconds where the reproduction should start, as specified in the URL
|
||||||
- `end_time` (numeric): Time in seconds where the reproduction should end, as specified in the URL
|
- `end_time` (numeric): Time in seconds where the reproduction should end, as specified in the URL
|
||||||
- `format` (string): A human-readable description of the format
|
- `format` (string): A human-readable description of the format
|
||||||
|
@ -280,6 +280,8 @@ class InfoExtractor(object):
|
|||||||
tags: A list of tags assigned to the video, e.g. ["sweden", "pop music"]
|
tags: A list of tags assigned to the video, e.g. ["sweden", "pop music"]
|
||||||
is_live: True, False, or None (=unknown). Whether this video is a
|
is_live: True, False, or None (=unknown). Whether this video is a
|
||||||
live stream that goes on instead of a fixed-length video.
|
live stream that goes on instead of a fixed-length video.
|
||||||
|
was_live: True, False, or None (=unknown). Whether this video was
|
||||||
|
originally a live stream.
|
||||||
start_time: Time in seconds where the reproduction should start, as
|
start_time: Time in seconds where the reproduction should start, as
|
||||||
specified in the URL.
|
specified in the URL.
|
||||||
end_time: Time in seconds where the reproduction should end, as
|
end_time: Time in seconds where the reproduction should end, as
|
||||||
|
@ -1757,6 +1757,7 @@ def feed_entry(name):
|
|||||||
'tags': keywords,
|
'tags': keywords,
|
||||||
'is_live': is_live,
|
'is_live': is_live,
|
||||||
'playable_in_embed': playability_status.get('playableInEmbed'),
|
'playable_in_embed': playability_status.get('playableInEmbed'),
|
||||||
|
'was_live': video_details.get('isLiveContent')
|
||||||
}
|
}
|
||||||
|
|
||||||
pctr = try_get(
|
pctr = try_get(
|
||||||
|
Loading…
Reference in New Issue
Block a user