소스 검색

[brightcove] fix format sorting

remitamine 9 년 전
부모
커밋
08136dc138
3개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      youtube_dl/extractor/brightcove.py
  2. 4 0
      youtube_dl/extractor/thestar.py
  3. 1 0
      youtube_dl/extractor/tv3.py

+ 2 - 1
youtube_dl/extractor/brightcove.py

@@ -396,6 +396,7 @@ class BrightcoveNewIE(InfoExtractor):
             'formats': 'mincount:41',
         },
         'params': {
+            # m3u8 download
             'skip_download': True,
         }
     }, {
@@ -533,7 +534,7 @@ class BrightcoveNewIE(InfoExtractor):
                     f.update({
                         'url': src or streaming_src,
                         'format_id': build_format_id('http' if src else 'http-streaming'),
-                        'preference': 2 if src else 1,
+                        'source_preference': 0 if src else -1,
                     })
                 else:
                     f.update({

+ 4 - 0
youtube_dl/extractor/thestar.py

@@ -19,6 +19,10 @@ class TheStarIE(InfoExtractor):
             'uploader_id': '794267642001',
             'timestamp': 1454353482,
             'upload_date': '20160201',
+        },
+        'params': {
+            # m3u8 download
+            'skip_download': True,
         }
     }
     BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/794267642001/default_default/index.html?videoId=%s'

+ 1 - 0
youtube_dl/extractor/tv3.py

@@ -21,6 +21,7 @@ class TV3IE(InfoExtractor):
             'Failed to download MPD manifest'
         ],
         'params': {
+            # m3u8 download
             'skip_download': True,
         },
     }