1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 00:37:41 +00:00

[indavideo] Fix formats' height (Closes #9744)

This commit is contained in:
Sergey M․ 2016-06-11 05:13:05 +07:00
parent 9ddc289f88
commit 62666af99f
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -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)