mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 19:03:06 +08:00
Removing default value for brightcove_id
This commit is contained in:
parent
9288c8831e
commit
d848147a33
@ -38,5 +38,5 @@ class RMCDecouverteIE(InfoExtractor):
|
|||||||
if brightcove_legacy_url:
|
if brightcove_legacy_url:
|
||||||
brightcove_id = compat_parse_qs(compat_urlparse.urlparse(brightcove_legacy_url).query)['@videoPlayer'][0]
|
brightcove_id = compat_parse_qs(compat_urlparse.urlparse(brightcove_legacy_url).query)['@videoPlayer'][0]
|
||||||
else:
|
else:
|
||||||
brightcove_id = self._html_search_regex(r'data-video-id="(.*?)"', webpage, 'error message', default=None)
|
brightcove_id = self._html_search_regex(r'data-video-id="(.*?)"', webpage, 'error message')
|
||||||
return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id)
|
return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user