mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-04 08:29:57 +01:00
[pornhub] Add support for thumbzilla (Closes #8696)
This commit is contained in:
parent
35fc3021ba
commit
bc4b2d75ba
@ -25,7 +25,15 @@
|
|||||||
|
|
||||||
|
|
||||||
class PornHubIE(InfoExtractor):
|
class PornHubIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://(?:[a-z]+\.)?pornhub\.com/(?:view_video\.php\?viewkey=|embed/)(?P<id>[0-9a-z]+)'
|
IE_DESC = 'PornHub and Thumbzilla'
|
||||||
|
_VALID_URL = r'''(?x)
|
||||||
|
https?://
|
||||||
|
(?:
|
||||||
|
(?:[a-z]+\.)?pornhub\.com/(?:view_video\.php\?viewkey=|embed/)|
|
||||||
|
(?:www\.)?thumbzilla\.com/video/
|
||||||
|
)
|
||||||
|
(?P<id>[0-9a-z]+)
|
||||||
|
'''
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'http://www.pornhub.com/view_video.php?viewkey=648719015',
|
'url': 'http://www.pornhub.com/view_video.php?viewkey=648719015',
|
||||||
'md5': '1e19b41231a02eba417839222ac9d58e',
|
'md5': '1e19b41231a02eba417839222ac9d58e',
|
||||||
@ -74,6 +82,9 @@ class PornHubIE(InfoExtractor):
|
|||||||
# removed by uploader
|
# removed by uploader
|
||||||
'url': 'http://www.pornhub.com/view_video.php?viewkey=ph572716d15a111',
|
'url': 'http://www.pornhub.com/view_video.php?viewkey=ph572716d15a111',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
}, {
|
||||||
|
'url': 'https://www.thumbzilla.com/video/ph56c6114abd99a/horny-girlfriend-sex',
|
||||||
|
'only_matching': True,
|
||||||
}]
|
}]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Loading…
Reference in New Issue
Block a user