From 99474c65105ecaf2a24ced17c35c3b475e07e925 Mon Sep 17 00:00:00 2001 From: John Hawkinson Date: Tue, 7 Mar 2017 01:50:18 -0500 Subject: [PATCH] [brightcove:new] can't .rpartition video_id if it's None --- youtube_dl/extractor/brightcove.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index d625b802f..9f63ab79c 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -519,7 +519,7 @@ class BrightcoveNewIE(InfoExtractor): if not embed: embed = attrs.get('data-embed') # According to [5] data-video-id may be prefixed with 'ref:' - video_id = video_id.rpartition('ref:')[2] + if video_id: video_id = video_id.rpartition('ref:')[2] if video_id and account_id and player_id and embed: entries.append(