From e9c12c6537d8577ba67536c09ae1115e7527538a Mon Sep 17 00:00:00 2001 From: JChris246 Date: Mon, 29 Jun 2020 13:01:14 -0400 Subject: [PATCH] Adding requested changes Changed regex from [\dA-z]+ to \w+ Updated movies id regex --- 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 3fcf1dd87..0eeb79774 100644 --- a/youtube_dl/extractor/xhamster.py +++ b/youtube_dl/extractor/xhamster.py @@ -25,8 +25,8 @@ class XHamsterIE(InfoExtractor): https?:// (?:.+?\.)?%s/ (?: - movies/(?P\d+)/(?P[^/]*)\.html| - videos/(?P[^/]*)-(?P[\dA-z]+) + movies/(?P\w+)/(?P[^/]*)\.html| + videos/(?P[^/]*)-(?P\w+) ) ''' % _DOMAINS _TESTS = [{