Explorar o código

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

Sergey M․ %!s(int64=9) %!d(string=hai) anos
pai
achega
62666af99f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      youtube_dl/extractor/indavideo.py

+ 2 - 1
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)