Browse Source

[brightcove:new] detect m3u8 manifests by M2TS container

master
remitamine 8 years ago
parent
commit
975b9c9ab0
1 changed files with 3 additions and 2 deletions
  1. 5
      youtube_dl/extractor/brightcove.py

5
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(),
}

Loading…
Cancel
Save