소스 검색

[globo] Improve http formats

Sergey M․ 10 년 전
부모
커밋
a4a6b7b80f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      youtube_dl/extractor/globo.py

+ 2 - 2
youtube_dl/extractor/globo.py

@@ -361,8 +361,8 @@ class GloboIE(InfoExtractor):
             else:
                 formats.append({
                     'url': signed_url,
-                    'format_id': resource_id,
-                    'height': resource.get('height'),
+                    'format_id': 'http-%s' % resource_id,
+                    'height': int_or_none(resource.get('height')),
                 })
 
         self._sort_formats(formats)