]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[vk] Make view count optional (closes #14979)
authorSergey M․ <dstftw@gmail.com>
Fri, 15 Dec 2017 15:53:56 +0000 (22:53 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 15 Dec 2017 15:53:56 +0000 (22:53 +0700)
youtube_dl/extractor/vk.py

index 0d8376522db12cd5c2568d108b928e9d675602e7..d4838b3e5f59410c7e3db3b99823261d51350925 100644 (file)
@@ -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():