aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/cloudflarestream.py
diff options
context:
space:
mode:
authordavex25 <dfriberg23@gmail.com>2019-05-10 15:09:00 -0500
committerSergey M <dstftw@gmail.com>2019-05-11 03:09:00 +0700
commit169f8d0fe151f5175ae436152ea3c815d7f290ce (patch)
tree25375f0be4fe0cf0ebc2902d0b8bebbb5d501561 /youtube_dl/extractor/cloudflarestream.py
parent0db2b275dd574af2adff49fbbf99ee164b60e4b8 (diff)
[cloudflarestream] Add support for videodelivery.net (#21049)
Diffstat (limited to 'youtube_dl/extractor/cloudflarestream.py')
-rw-r--r--youtube_dl/extractor/cloudflarestream.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/cloudflarestream.py b/youtube_dl/extractor/cloudflarestream.py
index e6d92cca2..8ff2c6531 100644
--- a/youtube_dl/extractor/cloudflarestream.py
+++ b/youtube_dl/extractor/cloudflarestream.py
@@ -10,8 +10,8 @@ class CloudflareStreamIE(InfoExtractor):
_VALID_URL = r'''(?x)
https?://
(?:
- (?:watch\.)?cloudflarestream\.com/|
- embed\.cloudflarestream\.com/embed/[^/]+\.js\?.*?\bvideo=
+ (?:watch\.)?(?:cloudflarestream\.com|videodelivery\.net)/|
+ embed\.(?:cloudflarestream\.com|videodelivery\.net)/embed/[^/]+\.js\?.*?\bvideo=
)
(?P<id>[\da-f]+)
'''
@@ -31,6 +31,9 @@ class CloudflareStreamIE(InfoExtractor):
}, {
'url': 'https://cloudflarestream.com/31c9291ab41fac05471db4e73aa11717/manifest/video.mpd',
'only_matching': True,
+ }, {
+ 'url': 'https://embed.videodelivery.net/embed/r4xu.fla9.latest.js?video=81d80727f3022488598f68d323c1ad5e',
+ 'only_matching': True,
}]
@staticmethod
@@ -38,7 +41,7 @@ class CloudflareStreamIE(InfoExtractor):
return [
mobj.group('url')
for mobj in re.finditer(
- r'<script[^>]+\bsrc=(["\'])(?P<url>(?:https?:)?//embed\.cloudflarestream\.com/embed/[^/]+\.js\?.*?\bvideo=[\da-f]+?.*?)\1',
+ r'<script[^>]+\bsrc=(["\'])(?P<url>(?:https?:)?//embed\.(?:cloudflarestream\.com|videodelivery\.net)/embed/[^/]+\.js\?.*?\bvideo=[\da-f]+?.*?)\1',
webpage)]
def _real_extract(self, url):