1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-11 01:27:18 +08:00

Merge pull request #37 from ytdl-org/master

[pull] master from ytdl-org:master
This commit is contained in:
pull[bot] 2019-07-14 14:18:47 +00:00 committed by GitHub
commit 1274c706e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: