Browse Source

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

totalwebcasting
Sergey M․ 9 years ago
parent
commit
62666af99f
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/indavideo.py

+ 2
- 1
youtube_dl/extractor/indavideo.py View File

@ -60,7 +60,8 @@ class IndavideoEmbedIE(InfoExtractor):
formats = [{ formats = [{
'url': video_url, '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] } for video_url in video_urls]
self._sort_formats(formats) self._sort_formats(formats)


Loading…
Cancel
Save