[indavideo] Fix formats' height (Closes #9744)
authorSergey M․ <dstftw@gmail.com>
Fri, 10 Jun 2016 22:13:05 +0000 (05:13 +0700)
committerSergey M․ <dstftw@gmail.com>
Fri, 10 Jun 2016 22:13:05 +0000 (05:13 +0700)
youtube_dl/extractor/indavideo.py

index 9622f198aa6aaf99094a9b85c5a914d4f0c07d46..c6f080484a99f43614f104ead8023e8e57609cda 100644 (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)