aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp
diff options
context:
space:
mode:
authorYakabuff <yekeb00f@gmail.com>2021-11-27 02:04:51 -0500
committerGitHub <noreply@github.com>2021-11-27 12:34:51 +0530
commit2abf0815542dd44724b577752fb9339e76816057 (patch)
treefadbc1bd358027d23f6be92e527e0840be25c396 /yt_dlp
parent359df0fc423b4a5d5af8113d42648fdea22e81ea (diff)
downloadhypervideo-pre-2abf0815542dd44724b577752fb9339e76816057.tar.lz
hypervideo-pre-2abf0815542dd44724b577752fb9339e76816057.tar.xz
hypervideo-pre-2abf0815542dd44724b577752fb9339e76816057.zip
[xvideos] Fix extractor (#1799)
Closes #1788 Authored by: Yakabuff
Diffstat (limited to 'yt_dlp')
-rw-r--r--yt_dlp/extractor/xvideos.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/yt_dlp/extractor/xvideos.py b/yt_dlp/extractor/xvideos.py
index ef45eb929..ab07f01af 100644
--- a/yt_dlp/extractor/xvideos.py
+++ b/yt_dlp/extractor/xvideos.py
@@ -83,9 +83,7 @@ class XVideosIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
-
- webpage = self._download_webpage(
- 'https://www.xvideos.com/video%s/' % video_id, video_id)
+ webpage = self._download_webpage(url, video_id)
mobj = re.search(r'<h1 class="inlineError">(.+?)</h1>', webpage)
if mobj: