1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-04 17:23:59 +08:00

[brightcove:new] reorder [1] <video> comment to point of use

This commit is contained in:
John Hawkinson
2017-03-18 11:47:24 -04:00
Unverified
parent ca67fc4341
commit 36fc7fb07a
+3 -3
View File
@@ -497,9 +497,6 @@ class BrightcoveNewIE(InfoExtractor):
# 4. http://docs.brightcove.com/en/video-cloud/brightcove-player/guides/in-page-embed-player-implementation.html
# 5. https://support.brightcove.com/en/video-cloud/docs/dynamically-assigning-videos-player
# [1] looks like:
# <video data-video-id="5320421710001" data-account="245991542" data-player="SJWAiyYWg" data-embed="default" class="video-js" controls itemscope itemtype="http://schema.org/VideoObject">
entries = []
# Look for iframe embeds [3]
@@ -508,6 +505,9 @@ class BrightcoveNewIE(InfoExtractor):
entries.append(url if url.startswith('http') else 'http:' + url)
# Look for <video> tags [1] and embed_in_page embeds [2]
# [1] looks like:
# <video data-video-id="5320421710001" data-account="245991542" data-player="SJWAiyYWg" data-embed="default" class="video-js" controls itemscope itemtype="http://schema.org/VideoObject">
for video, script_tag, account_id, player_id, embed in re.findall(
r'''(?isx)
(<video[^>]+>)