summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2020-08-12 21:51:06 +0700
committerSergey M․ <dstftw@gmail.com>2020-08-12 21:51:50 +0700
commit10709fc7c640fcd2f4866090d68f130fc8d9ad0c (patch)
tree5ea0d6e23e96f01f825838e249c183566eb0766b
parenta7e348556a213f008758011777a0a25759efc2e8 (diff)
downloadyoutube-dl-10709fc7c640fcd2f4866090d68f130fc8d9ad0c.tar.gz
youtube-dl-10709fc7c640fcd2f4866090d68f130fc8d9ad0c.tar.xz
youtube-dl-10709fc7c640fcd2f4866090d68f130fc8d9ad0c.zip
[xhamster] Extend _VALID_URL (closes #25927)
-rw-r--r--youtube_dl/extractor/xhamster.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/xhamster.py b/youtube_dl/extractor/xhamster.py
index babe31739..902a3ed33 100644
--- a/youtube_dl/extractor/xhamster.py
+++ b/youtube_dl/extractor/xhamster.py
@@ -20,7 +20,7 @@ from ..utils import (
 
 
 class XHamsterIE(InfoExtractor):
-    _DOMAINS = r'(?:xhamster\.(?:com|one|desi)|xhms\.pro|xhamster[27]\.com)'
+    _DOMAINS = r'(?:xhamster\.(?:com|one|desi)|xhms\.pro|xhamster\d+\.com)'
     _VALID_URL = r'''(?x)
                     https?://
                         (?:.+?\.)?%s/
@@ -100,6 +100,12 @@ class XHamsterIE(InfoExtractor):
         'url': 'https://xhamster2.com/videos/femaleagent-shy-beauty-takes-the-bait-1509445',
         'only_matching': True,
     }, {
+        'url': 'https://xhamster11.com/videos/femaleagent-shy-beauty-takes-the-bait-1509445',
+        'only_matching': True,
+    }, {
+        'url': 'https://xhamster26.com/videos/femaleagent-shy-beauty-takes-the-bait-1509445',
+        'only_matching': True,
+    }, {
         'url': 'http://xhamster.com/movies/1509445/femaleagent_shy_beauty_takes_the_bait.html',
         'only_matching': True,
     }, {