From 112db624e1e94651b34093887c6ad45e76276834 Mon Sep 17 00:00:00 2001 From: Austin de Coup-Crank Date: Mon, 5 Nov 2018 16:21:10 -0800 Subject: [PATCH] [ciscolive] Fix bug in _check_bc_id_exists() --- youtube_dl/extractor/ciscolive.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/ciscolive.py b/youtube_dl/extractor/ciscolive.py index 2d490dd05..53c2a8c72 100755 --- a/youtube_dl/extractor/ciscolive.py +++ b/youtube_dl/extractor/ciscolive.py @@ -108,9 +108,10 @@ class CiscoLiveIE(InfoExtractor): ''' bc_id = try_get(rf_item, lambda x: x['videos'][0]['url']) - mobj = re.match(r'\d+', bc_id) - if mobj: - return rf_item + if bc_id: + mobj = re.match(r'\d+', bc_id) + if mobj: + return rf_item def _real_extract(self, url): mobj = re.match(self._VALID_URL, url)