aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-03-15 10:06:53 +0100
committerremitamine <remitamine@gmail.com>2016-03-15 10:06:53 +0100
commit975b9c9ab09306054d159d57085ed6ea1582b4de (patch)
treefe0db195b478cc2b02e3b9873d106308980be47a /youtube_dl/extractor
parent8ac73bdbe44e14007fb3e630eb70e2a395133480 (diff)
[brightcove:new] detect m3u8 manifests by M2TS container
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/brightcove.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index 9760e606f..f8413d5f2 100644
--- a/youtube_dl/extractor/brightcove.py
+++ b/youtube_dl/extractor/brightcove.py
@@ -475,9 +475,10 @@ class BrightcoveNewIE(InfoExtractor):
formats = []
for source in json_data.get('sources', []):
+ container = source.get('container')
source_type = source.get('type')
src = source.get('src')
- if source_type == 'application/x-mpegURL':
+ if source_type == 'application/x-mpegURL' or container == 'M2TS':
if not src:
continue
formats.extend(self._extract_m3u8_formats(
@@ -495,7 +496,7 @@ class BrightcoveNewIE(InfoExtractor):
'width': int_or_none(source.get('width')),
'height': height,
'filesize': int_or_none(source.get('size')),
- 'container': source.get('container'),
+ 'container': container,
'vcodec': source.get('codec'),
'ext': source.get('container').lower(),
}