summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2019-07-14 20:30:05 +0700
committerSergey M․ <[email protected]>2019-07-14 20:30:05 +0700
commit898238e9f82e29ef139ff934f6949ddf574bd4d8 (patch)
treee83b952aebff41ffbe3291f94f17f41e3bf323d6
parentce80cacefd70a2c268de2fb1d5838ce66ac9a683 (diff)
downloadyoutube-dl-898238e9f82e29ef139ff934f6949ddf574bd4d8.tar.gz
youtube-dl-898238e9f82e29ef139ff934f6949ddf574bd4d8.zip
[youtube] Restrict is_live extraction (closes #21782)
-rw-r--r--youtube_dl/extractor/youtube.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 762611b89..43a3fad9f 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -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: