From: Sergey M․ Date: Sat, 22 Jul 2017 17:44:50 +0000 (+0700) Subject: [vidio] Make duration non fatal and fix typo X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=935d6c20c00536cf39cf2844295266e64492bb10;p=youtube-dl [vidio] Make duration non fatal and fix typo --- 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\d+)\1', webpage, 'duration')) + r'data-video-duration=(["\'])(?P\d+)\1', webpage, + 'duration', fatal=False, group='duration')) thumbnail = thumbnail or self._og_search_thumbnail(webpage) like_count = int_or_none(self._search_regex(