From fbaa4a8b82ba488edbc80b91485d395f444951f3 Mon Sep 17 00:00:00 2001 From: Zach Knox Date: Mon, 5 Mar 2018 19:44:22 -0500 Subject: [PATCH] Allow download to continue even if it can't find AssetType This doesn't necesserily result in a successful download due to ffmpeg not supporting SAMPLE-AES encryption, but will let you see formats in -F, and you'll likely find a working one not far down the list --- youtube_dl/extractor/cbs.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/cbs.py b/youtube_dl/extractor/cbs.py index 1268e38ef..126a881fd 100644 --- a/youtube_dl/extractor/cbs.py +++ b/youtube_dl/extractor/cbs.py @@ -7,6 +7,7 @@ from ..utils import ( xpath_element, xpath_text, update_url_query, + ExtractorError ) @@ -74,9 +75,12 @@ class CBSIE(CBSBaseIE): query['formats'] = 'MPEG4,M3U' elif asset_type in ('RTMP', 'WIFI', '3G'): query['formats'] = 'MPEG4,FLV' - tp_formats, tp_subtitles = self._extract_theplatform_smil( - update_url_query(tp_release_url, query), content_id, - 'Downloading %s SMIL data' % asset_type) + try: + tp_formats, tp_subtitles = self._extract_theplatform_smil( + update_url_query(tp_release_url, query), content_id, + 'Downloading %s SMIL data' % asset_type) + except ExtractorError: + continue formats.extend(tp_formats) subtitles = self._merge_subtitles(subtitles, tp_subtitles) self._sort_formats(formats)