]> jfr.im git - yt-dlp.git/commitdiff
[ie/CloudflareStream] Improve `_VALID_URL` (#9280)
authorbashonly <redacted>
Sat, 24 Feb 2024 22:02:13 +0000 (16:02 -0600)
committerGitHub <redacted>
Sat, 24 Feb 2024 22:02:13 +0000 (22:02 +0000)
Closes #9171
Authored by: bashonly

yt_dlp/extractor/cloudflarestream.py

index c4c7d66a5a1f0c69475ed6cf3d4a9b5af524f7a4..0c5f4fb40ce0a4ba01e2fbbdba28ba0a35ba7089 100644 (file)
@@ -10,7 +10,7 @@ class CloudflareStreamIE(InfoExtractor):
     _VALID_URL = r'''(?x)
                     https?://
                         (?:
     _VALID_URL = r'''(?x)
                     https?://
                         (?:
-                            (?:watch\.)?%s/|
+                            (?:[\w-]+\.)?%s/|
                             %s
                         )
                         (?P<id>%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://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):
     }]
 
     def _real_extract(self, url):