[extractor/xfileshare] Add Referer (#4494)

Authored by: Galiley
pull/4529/head
Galiley 2 years ago committed by GitHub
parent 5770293d25
commit d8657ff76f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -69,6 +69,15 @@ class XFileShareIE(InfoExtractor):
)
_TESTS = [{
'url': 'https://uqload.com/dltx1wztngdz',
'md5': '3cfbb65e4c90e93d7b37bcb65a595557',
'info_dict': {
'id': 'dltx1wztngdz',
'ext': 'mp4',
'title': 'Rick Astley Never Gonna Give You mp4',
'thumbnail': r're:https://.*\.jpg'
}
}, {
'url': 'http://xvideosharing.com/fq65f94nd2ve',
'md5': '4181f63957e8fe90ac836fa58dc3c8a6',
'info_dict': {
@ -186,4 +195,5 @@ class XFileShareIE(InfoExtractor):
'title': title,
'thumbnail': thumbnail,
'formats': formats,
'http_headers': {'Referer': url}
}

Loading…
Cancel
Save