1
mirror of https://github.com/yt-dlp/yt-dlp synced 2024-12-25 21:53:45 +01:00

[xvideos] Fix extractor (#1799)

Closes #1788 
Authored by: Yakabuff
This commit is contained in:
Yakabuff 2021-11-27 02:04:51 -05:00 committed by GitHub
parent 359df0fc42
commit 2abf081554
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: