1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-15 03:27:46 +01:00

[youtube] Restrict is_live extraction (closes #21782)

This commit is contained in:
Sergey M․ 2019-07-14 20:30:05 +07:00
parent ce80cacefd
commit 898238e9f8
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -1896,9 +1896,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
view_count = int_or_none(video_details.get('viewCount'))
if is_live is None:
is_live = bool_or_none(dict_get(
video_details, ('isLive', 'isLiveContent'),
skip_false_values=False))
is_live = bool_or_none(video_details.get('isLive'))
# Check for "rental" videos
if 'ypc_video_rental_bar_text' in video_info and 'author' not in video_info: