Changed regex to exclusively include numbers and letters

This commit is contained in:
JChris246 2020-07-02 13:12:04 -04:00
parent e9c12c6537
commit c300582cdb

View File

@ -25,8 +25,8 @@ class XHamsterIE(InfoExtractor):
https?:// https?://
(?:.+?\.)?%s/ (?:.+?\.)?%s/
(?: (?:
movies/(?P<id>\w+)/(?P<display_id>[^/]*)\.html| movies/(?P<id>[\dA-z]+)/(?P<display_id>[^/]*)\.html|
videos/(?P<display_id_2>[^/]*)-(?P<id_2>\w+) videos/(?P<display_id_2>[^/]*)-(?P<id_2>[\dA-z]+)
) )
''' % _DOMAINS ''' % _DOMAINS
_TESTS = [{ _TESTS = [{