Verified Commit 898238e9 authored by Sergey M.'s avatar Sergey M.
Browse files

[youtube] Restrict is_live extraction (closes #21782)

parent ce80cace
......@@ -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'),
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:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment