aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2024-02-24 16:02:13 -0600
committerGitHub <noreply@github.com>2024-02-24 22:02:13 +0000
commitf3d5face83f948c24bcb91e06d4fa6e8622d7d79 (patch)
tree7a73267cbd8b7e264290d2593e4ac2bc0d09b6c3
parenteabbccc439720fba381919a88be4fe4d96464cbd (diff)
[ie/CloudflareStream] Improve `_VALID_URL` (#9280)
Closes #9171 Authored by: bashonly
-rw-r--r--yt_dlp/extractor/cloudflarestream.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/cloudflarestream.py b/yt_dlp/extractor/cloudflarestream.py
index c4c7d66a5..0c5f4fb40 100644
--- a/yt_dlp/extractor/cloudflarestream.py
+++ b/yt_dlp/extractor/cloudflarestream.py
@@ -10,7 +10,7 @@ class CloudflareStreamIE(InfoExtractor):
_VALID_URL = r'''(?x)
https?://
(?:
- (?:watch\.)?%s/|
+ (?:[\w-]+\.)?%s/|
%s
)
(?P<id>%s)
@@ -35,6 +35,9 @@ class CloudflareStreamIE(InfoExtractor):
}, {
'url': 'https://embed.videodelivery.net/embed/r4xu.fla9.latest.js?video=81d80727f3022488598f68d323c1ad5e',
'only_matching': True,
+ }, {
+ 'url': 'https://customer-aw5py76sw8wyqzmh.cloudflarestream.com/2463f6d3e06fa29710a337f5f5389fd8/iframe',
+ 'only_matching': True,
}]
def _real_extract(self, url):