1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-14 07:37:25 +08:00

Make download of JSON list of video URLs fatal. Use note and errNote instead of directly raising ExtractorErrors

This commit is contained in:
mars67857 2017-10-15 16:22:00 -07:00
parent af9fa317f1
commit f9d000e265

View File

@ -54,13 +54,9 @@ class CamModelsIE(InfoExtractor):
manifest = self._download_json(
manifest_url,
video_id,
headers=self._HEADERS,
fatal=False)
if not manifest:
raise ExtractorError(
'Link to stream URLs was found, but we couldn\'t access it.',
expected=False,
video_id=video_id)
'Downloading links to streams.',
'Link to stream URLs was found, but we couldn\'t access it.',
headers=self._HEADERS)
try:
rtmp_formats = manifest['formats']['mp4-rtmp']['encodings']
formats = []