From: Sergey M․ Date: Fri, 10 Jun 2016 22:13:05 +0000 (+0700) Subject: [indavideo] Fix formats' height (Closes #9744) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=62666af99fb55e3ba535ce630e8ce0aed1b5b0e8;p=youtube-dl [indavideo] Fix formats' height (Closes #9744) --- diff --git a/youtube_dl/extractor/indavideo.py b/youtube_dl/extractor/indavideo.py index 9622f198a..c6f080484 100644 --- a/youtube_dl/extractor/indavideo.py +++ b/youtube_dl/extractor/indavideo.py @@ -60,7 +60,8 @@ class IndavideoEmbedIE(InfoExtractor): formats = [{ 'url': video_url, - 'height': self._search_regex(r'\.(\d{3,4})\.mp4$', video_url, 'height', default=None), + 'height': int_or_none(self._search_regex( + r'\.(\d{3,4})\.mp4(?:\?|$)', video_url, 'height', default=None)), } for video_url in video_urls] self._sort_formats(formats)