[vidio] Make duration non fatal and fix typo
authorSergey M․ <dstftw@gmail.com>
Sat, 22 Jul 2017 17:44:50 +0000 (00:44 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 22 Jul 2017 17:44:50 +0000 (00:44 +0700)
youtube_dl/extractor/vidio.py

index 701bb1d01c646b75091b769701566d92853ec365..01da32f1cdd05505a6d53eff4f9bc6691aaae512 100644 (file)
@@ -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(