mirror of
https://github.com/l1ving/youtube-dl
synced 2026-06-04 19:43:38 +08:00
[brightcove:new] can't .rpartition video_id if it's None
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user