[brightcove] fix format sorting
authorremitamine <remitamine@gmail.com>
Sat, 2 Apr 2016 09:57:57 +0000 (10:57 +0100)
committerremitamine <remitamine@gmail.com>
Sat, 2 Apr 2016 09:57:57 +0000 (10:57 +0100)
youtube_dl/extractor/brightcove.py
youtube_dl/extractor/thestar.py
youtube_dl/extractor/tv3.py

index 0d162d337ac19a7f60ff5c5495e9c2f9e0e17799..a8919001db8acb83bec50956eb289a66211cf664 100644 (file)
@@ -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({
index b7e9af2afc87460fb63cf4becaa87d0ce5760f8e..ba1380abcbeb3cb2a321b41695517f16f8cd6196 100644 (file)
@@ -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'
index d3f690dc713aa7f7c78238db1c9ea1fe47e6b651..3867ec90d016e84dcc717c9009cd12f190369364 100644 (file)
@@ -21,6 +21,7 @@ class TV3IE(InfoExtractor):
             'Failed to download MPD manifest'
         ],
         'params': {
+            # m3u8 download
             'skip_download': True,
         },
     }