Sergey M․
4 years ago
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
2 additions and
0 deletions
-
youtube_dl/extractor/youtube.py
|
|
@ -1978,6 +1978,8 @@ class YoutubeIE(YoutubeBaseInfoExtractor): |
|
|
|
view_count = extract_view_count(video_info) |
|
|
|
if view_count is None and video_details: |
|
|
|
view_count = int_or_none(video_details.get('viewCount')) |
|
|
|
if view_count is None and microformat: |
|
|
|
view_count = int_or_none(microformat.get('viewCount')) |
|
|
|
|
|
|
|
if is_live is None: |
|
|
|
is_live = bool_or_none(video_details.get('isLive')) |
|
|
|