aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author4a1e2y5 <66421735+4a1e2y5@users.noreply.github.com>2021-11-21 00:24:05 +0100
committerGitHub <noreply@github.com>2021-11-21 04:54:05 +0530
commit849d699a8b2d36a9aab6c3a34073c9d1c5088a29 (patch)
tree33e11995c77a1e15344f7d42127de0045dc0b871
parent77fcc6515852bc2e1c6960a6e010ab2ff1caf1ee (diff)
downloadhypervideo-pre-849d699a8b2d36a9aab6c3a34073c9d1c5088a29.tar.lz
hypervideo-pre-849d699a8b2d36a9aab6c3a34073c9d1c5088a29.tar.xz
hypervideo-pre-849d699a8b2d36a9aab6c3a34073c9d1c5088a29.zip
[xvideos] Detect embed URLs (#1729)
Authored by: 4a1e2y5
-rw-r--r--yt_dlp/extractor/xvideos.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/extractor/xvideos.py b/yt_dlp/extractor/xvideos.py
index 8fc64914c..ef45eb929 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]+)
@@ -38,6 +38,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,
}, {