diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-07-23 00:44:50 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-07-23 00:44:50 +0700 |
commit | 935d6c20c00536cf39cf2844295266e64492bb10 (patch) | |
tree | 9eac7a1e14ac82dc5ef88d523e5c6e36990b52ee /youtube_dl/extractor/vidio.py | |
parent | e0f1fb0a27612c2398df59dd85194edfdf8cbc2a (diff) |
[vidio] Make duration non fatal and fix typo
Diffstat (limited to 'youtube_dl/extractor/vidio.py')
-rw-r--r-- | youtube_dl/extractor/vidio.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vidio.py b/youtube_dl/extractor/vidio.py index 701bb1d01..01da32f1c 100644 --- 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( |