From: Sergey M․ Date: Fri, 15 Dec 2017 15:53:56 +0000 (+0700) Subject: [vk] Make view count optional (closes #14979) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=498a8a4ca56e66adb84f8f1488c0239d048c7adc;p=youtube-dl [vk] Make view count optional (closes #14979) --- 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():