summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-07-23 00:44:50 +0700
committerSergey M․ <dstftw@gmail.com>2017-07-23 00:44:50 +0700
commit935d6c20c00536cf39cf2844295266e64492bb10 (patch)
tree9eac7a1e14ac82dc5ef88d523e5c6e36990b52ee
parente0f1fb0a27612c2398df59dd85194edfdf8cbc2a (diff)
downloadyoutube-dl-935d6c20c00536cf39cf2844295266e64492bb10.tar.gz
youtube-dl-935d6c20c00536cf39cf2844295266e64492bb10.tar.xz
youtube-dl-935d6c20c00536cf39cf2844295266e64492bb10.zip
[vidio] Make duration non fatal and fix typo
-rw-r--r--youtube_dl/extractor/vidio.py3
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(