mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-18 08:16:10 +00:00
[XHamster] Update domain list
* include domains listed as trusted in page, aliased to xhamster.com * excluding domains that redirect to xhamster (eg xhday.com)
This commit is contained in:
parent
296e43680e
commit
bafa9d7d01
1 changed files with 14 additions and 7 deletions
|
@ -48,7 +48,17 @@ class XHamsterBaseIE(InfoExtractor):
|
||||||
|
|
||||||
|
|
||||||
class XHamsterIE(XHamsterBaseIE):
|
class XHamsterIE(XHamsterBaseIE):
|
||||||
_DOMAINS = r'(?:xhamster\.(?:com|one|desi)|xhms\.pro|xhamster\d+\.com|xhday\.com|xhvid\.com)'
|
# base domains that don't redirect to xhamster.com (not xhday\d\.com, eg)
|
||||||
|
_DOMAINS = '(?:%s)' % '|'.join((
|
||||||
|
r'xhamster\d*\.(?:com|desi)',
|
||||||
|
r'xhamster\.one',
|
||||||
|
r'xhms\.pro',
|
||||||
|
r'xh(?:open|access|victory|big|channel)\.com',
|
||||||
|
r'(?:full|mega)xh\.com',
|
||||||
|
r'xh(?:vid|official|planet)\d*\.com',
|
||||||
|
# requires Tor
|
||||||
|
r'xhamster[a-z2-7]+\.onion',
|
||||||
|
))
|
||||||
_VALID_URL = r'''(?x)
|
_VALID_URL = r'''(?x)
|
||||||
https?://
|
https?://
|
||||||
(?:.+?\.)?%s/
|
(?:.+?\.)?%s/
|
||||||
|
@ -145,9 +155,7 @@ class XHamsterIE(XHamsterBaseIE):
|
||||||
'url': 'http://de.xhamster.com/videos/skinny-girl-fucks-herself-hard-in-the-forest-xhnBJZx',
|
'url': 'http://de.xhamster.com/videos/skinny-girl-fucks-herself-hard-in-the-forest-xhnBJZx',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://xhday.com/videos/strapless-threesome-xhh7yVf',
|
# 'url': 'https://xhday.com/videos/strapless-threesome-xhh7yVf',
|
||||||
'only_matching': True,
|
|
||||||
}, {
|
|
||||||
'url': 'https://xhvid.com/videos/lk-mm-xhc6wn6',
|
'url': 'https://xhvid.com/videos/lk-mm-xhc6wn6',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
@ -458,9 +466,8 @@ class XHamsterUserIE(InfoExtractor):
|
||||||
},
|
},
|
||||||
'playlist_mincount': 1,
|
'playlist_mincount': 1,
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://xhday.com/users/mobhunter',
|
# the below doesn't match but is redirected via generic
|
||||||
'only_matching': True,
|
# 'url': 'https://xhday.com/users/mobhunter',
|
||||||
}, {
|
|
||||||
'url': 'https://xhvid.com/users/pelushe21',
|
'url': 'https://xhvid.com/users/pelushe21',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
Loading…
Reference in a new issue