aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/brightcove.py
diff options
context:
space:
mode:
authorTom-Oliver Heidel <github@tom-oliver.eu>2020-11-30 02:20:18 +0100
committerGitHub <noreply@github.com>2020-11-30 02:20:18 +0100
commitef5a4db06cb7667dc555f0dc1982de2c5258eb37 (patch)
treec947a547303ccf19483e83ea9d3ea77c74b5b7a8 /youtube_dlc/extractor/brightcove.py
parent93201d50aa5e0bce0ecf6941cd6f9ea6c9ef86a5 (diff)
parentc78b936af4366259605e3e706bdeb5e173bf3d9b (diff)
downloadhypervideo-pre-ef5a4db06cb7667dc555f0dc1982de2c5258eb37.tar.lz
hypervideo-pre-ef5a4db06cb7667dc555f0dc1982de2c5258eb37.tar.xz
hypervideo-pre-ef5a4db06cb7667dc555f0dc1982de2c5258eb37.zip
Merge pull request #245 from pukkandan/merge-main
Merge youtube-dl and fix Youtube Feeds
Diffstat (limited to 'youtube_dlc/extractor/brightcove.py')
-rw-r--r--youtube_dlc/extractor/brightcove.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/youtube_dlc/extractor/brightcove.py b/youtube_dlc/extractor/brightcove.py
index 638673c31..c6ca939dd 100644
--- a/youtube_dlc/extractor/brightcove.py
+++ b/youtube_dlc/extractor/brightcove.py
@@ -147,7 +147,7 @@ class BrightcoveLegacyIE(InfoExtractor):
]
@classmethod
- def _build_brighcove_url(cls, object_str):
+ def _build_brightcove_url(cls, object_str):
"""
Build a Brightcove url from a xml string containing
<object class="BrightcoveExperience">{params}</object>
@@ -217,7 +217,7 @@ class BrightcoveLegacyIE(InfoExtractor):
return cls._make_brightcove_url(params)
@classmethod
- def _build_brighcove_url_from_js(cls, object_js):
+ def _build_brightcove_url_from_js(cls, object_js):
# The layout of JS is as follows:
# customBC.createVideo = function (width, height, playerID, playerKey, videoPlayer, VideoRandomID) {
# // build Brightcove <object /> XML
@@ -272,12 +272,12 @@ class BrightcoveLegacyIE(InfoExtractor):
).+?>\s*</object>''',
webpage)
if matches:
- return list(filter(None, [cls._build_brighcove_url(m) for m in matches]))
+ return list(filter(None, [cls._build_brightcove_url(m) for m in matches]))
matches = re.findall(r'(customBC\.createVideo\(.+?\);)', webpage)
if matches:
return list(filter(None, [
- cls._build_brighcove_url_from_js(custom_bc)
+ cls._build_brightcove_url_from_js(custom_bc)
for custom_bc in matches]))
return [src for _, src in re.findall(
r'<iframe[^>]+src=([\'"])((?:https?:)?//link\.brightcove\.com/services/player/(?!\1).+)\1', webpage)]