1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 03:23:22 +08:00

WSS:// URLs aren't supported, so limit to RTMP and HLS-over-HTTP protocols.

This commit is contained in:
mars67857 2017-10-15 22:17:49 -07:00
parent 95dc812c9c
commit 5d7edefcb7

View File

@ -55,13 +55,8 @@ class CamModelsIE(InfoExtractor):
headers=self._HEADERS)
try:
formats = []
all_formats = manifest['formats']
for fmtName in all_formats:
fmt = all_formats[fmtName]
encodings = fmt.get('encodings')
if not encodings:
continue
for encoding in encodings:
for fmtName in ['mp4-rtmp', 'mp4-hls']:
for encoding in manifest['formats'][fmtName]['encodings']:
formats.append({
'ext': 'mp4',
'url': encoding['location'],
@ -86,7 +81,7 @@ class CamModelsIE(InfoExtractor):
for manifest_link in manifest_links:
url = manifest_link.group('id')
formats.append({
'ext': 'flv',
'ext': 'mp4',
'url': url,
'format_id': url.split(sep='/')[-1]
})