projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d05ba4b
)
[vk] Make view count optional (closes #14979)
author
Sergey M․
<dstftw@gmail.com>
Fri, 15 Dec 2017 15:53:56 +0000
(22:53 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 15 Dec 2017 15:53:56 +0000
(22:53 +0700)
youtube_dl/extractor/vk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vk.py
b/youtube_dl/extractor/vk.py
index 0d8376522db12cd5c2568d108b928e9d675602e7..d4838b3e5f59410c7e3db3b99823261d51350925 100644
(file)
--- 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=Fals
e))
+ info_page, 'view count',
default=Non
e))
formats = []
for format_id, format_url in data.items():