Skip to content

A feature-rich command-line audio/video downloader

[xvideos] Detect embed URLs (#1729)

4a1e2y5849d699a8b2d
diff --git a/yt_dlp/extractor/xvideos.py b/yt_dlp/extractor/xvideos.py
index 8fc64914ca..ef45eb929e 100644
--- a/yt_dlp/extractor/xvideos.py
+++ b/yt_dlp/extractor/xvideos.py
@@ -19,7 +19,7 @@ class XVideosIE(InfoExtractor):
(?:
(?:[^/]+\.)?xvideos2?\.com/video|
(?:www\.)?xvideos\.es/video|
- flashservice\.xvideos\.com/embedframe/|
+ (?:www|flashservice)\.xvideos\.com/embedframe/|
static-hw\.xvideos\.com/swf/xv-player\.swf\?.*?\bid_video=
)
(?P<id>[0-9]+)
@@ -37,6 +37,9 @@ class XVideosIE(InfoExtractor):
}, {
'url': 'https://flashservice.xvideos.com/embedframe/4588838',
'only_matching': True,
+ }, {
+ 'url': 'https://www.xvideos.com/embedframe/4588838',
+ 'only_matching': True,
}, {
'url': 'http://static-hw.xvideos.com/swf/xv-player.swf?id_video=4588838',
'only_matching': True,