diff options
author | Galiley <Gal1ley@protonmail.com> | 2022-08-02 00:31:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 04:01:51 +0530 |
commit | d8657ff76f0701c7e35bfd7f2a2e247921c73afb (patch) | |
tree | 0f07992f56efe59b010ab299a58a0eb056182d1e | |
parent | 5770293d25708f57c12b496c5a2a1f1b3abb37ee (diff) | |
download | hypervideo-pre-d8657ff76f0701c7e35bfd7f2a2e247921c73afb.tar.lz hypervideo-pre-d8657ff76f0701c7e35bfd7f2a2e247921c73afb.tar.xz hypervideo-pre-d8657ff76f0701c7e35bfd7f2a2e247921c73afb.zip |
[extractor/xfileshare] Add Referer (#4494)
Authored by: Galiley
-rw-r--r-- | yt_dlp/extractor/xfileshare.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/yt_dlp/extractor/xfileshare.py b/yt_dlp/extractor/xfileshare.py index 5ecd7f00f..e5c479d03 100644 --- a/yt_dlp/extractor/xfileshare.py +++ b/yt_dlp/extractor/xfileshare.py @@ -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} } |