projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8ac73bd
)
[brightcove:new] detect m3u8 manifests by M2TS container
author
remitamine
<remitamine@gmail.com>
Tue, 15 Mar 2016 09:06:53 +0000
(10:06 +0100)
committer
remitamine
<remitamine@gmail.com>
Tue, 15 Mar 2016 09:06:53 +0000
(10:06 +0100)
youtube_dl/extractor/brightcove.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/brightcove.py
b/youtube_dl/extractor/brightcove.py
index 9760e606f23481afb7376bdf1f7552831b2c06c1..f8413d5f2a14ceffd10dac85c30f4442a5c4c0af 100644
(file)
--- 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', []):
formats = []
for source in json_data.get('sources', []):
+ container = source.get('container')
source_type = source.get('type')
src = source.get('src')
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(
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')),
'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(),
}
'vcodec': source.get('codec'),
'ext': source.get('container').lower(),
}