mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 05:43:07 +08:00
WSS:// URLs aren't supported, so limit to RTMP and HLS-over-HTTP protocols.
This commit is contained in:
parent
95dc812c9c
commit
5d7edefcb7
@ -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]
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user