mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-15 01:18:09 +00:00
[youtube] Restrict is_live extraction (closes #21782)
This commit is contained in:
parent
ce80cacefd
commit
898238e9f8
1 changed files with 1 additions and 3 deletions
|
@ -1896,9 +1896,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||||
view_count = int_or_none(video_details.get('viewCount'))
|
view_count = int_or_none(video_details.get('viewCount'))
|
||||||
|
|
||||||
if is_live is None:
|
if is_live is None:
|
||||||
is_live = bool_or_none(dict_get(
|
is_live = bool_or_none(video_details.get('isLive'))
|
||||||
video_details, ('isLive', 'isLiveContent'),
|
|
||||||
skip_false_values=False))
|
|
||||||
|
|
||||||
# Check for "rental" videos
|
# Check for "rental" videos
|
||||||
if 'ypc_video_rental_bar_text' in video_info and 'author' not in video_info:
|
if 'ypc_video_rental_bar_text' in video_info and 'author' not in video_info:
|
||||||
|
|
Loading…
Reference in a new issue