aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-06-11 05:13:05 +0700
committerSergey M․ <dstftw@gmail.com>2016-06-11 05:13:05 +0700
commit62666af99fb55e3ba535ce630e8ce0aed1b5b0e8 (patch)
tree7bf89521e73acbbc279d40e15bf6d70088825877
parent9ddc289f88542f4b0bf7ad5e9c725caf8889f71b (diff)
downloadyoutube-dl-62666af99fb55e3ba535ce630e8ce0aed1b5b0e8.tar.xz
[indavideo] Fix formats' height (Closes #9744)
-rw-r--r--youtube_dl/extractor/indavideo.py3
1 files changed, 2 insertions, 1 deletions
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)