]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[xhamster] Extend _VALID_URL (closes #25789) (#25804)
authorJChris246 <43832407+JChris246@users.noreply.github.com>
Wed, 12 Aug 2020 14:37:22 +0000 (10:37 -0400)
committerGitHub <noreply@github.com>
Wed, 12 Aug 2020 14:37:22 +0000 (21:37 +0700)
youtube_dl/extractor/xhamster.py

index 0f7be6a7d93adc3a4fea8c6995cd8b58a084b9b4..72ce5e1d3750febdabb771d081188b312c597c5e 100644 (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>[\dA-Za-z]+)/(?P<display_id>[^/]*)\.html|
+                            videos/(?P<display_id_2>[^/]*)-(?P<id_2>[\dA-Za-z]+)
                         )
                     ''' % _DOMAINS
     _TESTS = [{
@@ -105,6 +105,9 @@ class XHamsterIE(InfoExtractor):
     }, {
         'url': 'http://xhamster.com/movies/2221348/britney_spears_sexy_booty.html?hd',
         'only_matching': True,
+    }, {
+        'url': 'http://de.xhamster.com/videos/skinny-girl-fucks-herself-hard-in-the-forest-xhnBJZx',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):