From c300582cdb046849f896e1cefaf171fa1b88cdce Mon Sep 17 00:00:00 2001 From: JChris246 Date: Thu, 2 Jul 2020 13:12:04 -0400 Subject: [PATCH] Changed regex to exclusively include numbers and letters --- youtube_dl/extractor/xhamster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py index 0eeb79774..81d0d6cf1 100644 --- a/youtube_dl/extractor/xhamster.py +++ b/youtube_dl/extractor/xhamster.py @@ -25,8 +25,8 @@ class XHamsterIE(InfoExtractor): https?:// (?:.+?\.)?%s/ (?: - movies/(?P\w+)/(?P[^/]*)\.html| - videos/(?P[^/]*)-(?P\w+) + movies/(?P[\dA-z]+)/(?P[^/]*)\.html| + videos/(?P[^/]*)-(?P[\dA-z]+) ) ''' % _DOMAINS _TESTS = [{