projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0f1fb0
)
[vidio] Make duration non fatal and fix typo
author
Sergey M․
<dstftw@gmail.com>
Sat, 22 Jul 2017 17:44:50 +0000
(
00:44
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 22 Jul 2017 17:44:50 +0000
(
00:44
+0700)
youtube_dl/extractor/vidio.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vidio.py
b/youtube_dl/extractor/vidio.py
index 701bb1d01c646b75091b769701566d92853ec365..01da32f1cdd05505a6d53eff4f9bc6691aaae512 100644
(file)
--- a/
youtube_dl/extractor/vidio.py
+++ b/
youtube_dl/extractor/vidio.py
@@
-56,7
+56,8
@@
class VidioIE(InfoExtractor):
self._sort_formats(formats)
duration = int_or_none(duration or self._search_regex(
- r'data-video-duration=(["\'])(?P<duartion>\d+)\1', webpage, 'duration'))
+ r'data-video-duration=(["\'])(?P<duration>\d+)\1', webpage,
+ 'duration', fatal=False, group='duration'))
thumbnail = thumbnail or self._og_search_thumbnail(webpage)
like_count = int_or_none(self._search_regex(