1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-01 21:45:34 +08:00

Update xhamster.py

Movie and Video id can also contain characters [a-zA-Z]
change \d+ on line 28 and 29 to \w+
This commit is contained in:
orthello 2020-06-29 17:28:58 +02:00 committed by GitHub
parent e942cfd1a7
commit c009da0e40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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