mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-15 22:24:32 +01:00
[brightcove:new] Style
This commit is contained in:
parent
cb33d389ed
commit
d8a1caf04f
@ -402,10 +402,11 @@ class BrightcoveNewIE(InfoExtractor):
|
|||||||
for _, url in re.findall(
|
for _, url in re.findall(
|
||||||
r'<iframe[^>]+src=(["\'])((?:https?:)//players\.brightcove\.net/\d+/[^/]+/index\.html.+?)\1', webpage):
|
r'<iframe[^>]+src=(["\'])((?:https?:)//players\.brightcove\.net/\d+/[^/]+/index\.html.+?)\1', webpage):
|
||||||
entries.append(url)
|
entries.append(url)
|
||||||
|
|
||||||
# Look for embed_in_page embeds [2]
|
# Look for embed_in_page embeds [2]
|
||||||
# According to examples from [3] it's unclear whether video id may be optional
|
|
||||||
# and what to do when it is
|
|
||||||
for video_id, account_id, player_id, embed in re.findall(
|
for video_id, account_id, player_id, embed in re.findall(
|
||||||
|
# According to examples from [3] it's unclear whether video id
|
||||||
|
# may be optional and what to do when it is
|
||||||
r'''(?sx)
|
r'''(?sx)
|
||||||
<video[^>]+
|
<video[^>]+
|
||||||
data-video-id=["\'](\d+)["\'][^>]*>.*?
|
data-video-id=["\'](\d+)["\'][^>]*>.*?
|
||||||
@ -417,6 +418,7 @@ class BrightcoveNewIE(InfoExtractor):
|
|||||||
entries.append(
|
entries.append(
|
||||||
'http://players.brightcove.net/%s/%s_%s/index.html?videoId=%s'
|
'http://players.brightcove.net/%s/%s_%s/index.html?videoId=%s'
|
||||||
% (account_id, player_id, embed, video_id))
|
% (account_id, player_id, embed, video_id))
|
||||||
|
|
||||||
return entries
|
return entries
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user