From dbcc399240021413ea60b318b3e5105c2bd69b4d Mon Sep 17 00:00:00 2001 From: Zach Knox Date: Mon, 5 Mar 2018 21:41:17 -0500 Subject: [PATCH] added a few more lines to the try/except and a proper warning message to show something didn't go right --- youtube_dl/extractor/cbs.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/cbs.py b/youtube_dl/extractor/cbs.py index 126a881fd..aee86ff47 100644 --- a/youtube_dl/extractor/cbs.py +++ b/youtube_dl/extractor/cbs.py @@ -79,10 +79,13 @@ class CBSIE(CBSBaseIE): tp_formats, tp_subtitles = self._extract_theplatform_smil( update_url_query(tp_release_url, query), content_id, 'Downloading %s SMIL data' % asset_type) + formats.extend(tp_formats) + subtitles = self._merge_subtitles(subtitles, tp_subtitles) except ExtractorError: + print("WARNING: Failed to download %s SMTL data" % asset_type) continue - formats.extend(tp_formats) - subtitles = self._merge_subtitles(subtitles, tp_subtitles) + + self._sort_formats(formats) info = self._extract_theplatform_metadata(tp_path, content_id)