commit 498a8a4ca56e66adb84f8f1488c0239d048c7adc
parent d05ba4b89e195ed18e8d51561649712f945769b9
Author: Sergey M․ <dstftw@gmail.com>
Date: Fri, 15 Dec 2017 22:53:56 +0700
[vk] Make view count optional (closes #14979)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py
@@ -414,7 +414,7 @@ class VKIE(VKBaseIE):
view_count = str_to_int(self._search_regex(
r'class=["\']mv_views_count[^>]+>\s*([\d,.]+)',
- info_page, 'view count', fatal=False))
+ info_page, 'view count', default=None))
formats = []
for format_id, format_url in data.items():