aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-12-15 22:53:56 +0700
committerSergey M․ <dstftw@gmail.com>2017-12-15 22:53:56 +0700
commit498a8a4ca56e66adb84f8f1488c0239d048c7adc (patch)
treeecc5ebdf4d297290fb43db2cba129caae95d332b /youtube_dl
parentd05ba4b89e195ed18e8d51561649712f945769b9 (diff)
[vk] Make view count optional (closes #14979)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/vk.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vk.py b/youtube_dl/extractor/vk.py
index 0d8376522..d4838b3e5 100644
--- 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():