1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-24 19:22:06 +00:00

[vk] Make view count optional (closes #14979)

This commit is contained in:
Sergey M․ 2017-12-15 22:53:56 +07:00
parent d05ba4b89e
commit 498a8a4ca5
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View 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():