1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-08 18:12:56 +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?:// https?://
(?:.+?\.)?%s/ (?:.+?\.)?%s/
(?: (?:
movies/(?P<id>\d+)/(?P<display_id>[^/]*)\.html| movies/(?P<id>\w+)/(?P<display_id>[^/]*)\.html|
videos/(?P<display_id_2>[^/]*)-(?P<id_2>\d+) videos/(?P<display_id_2>[^/]*)-(?P<id_2>\w+)
) )
''' % _DOMAINS ''' % _DOMAINS
_TESTS = [{ _TESTS = [{