diff options
author | Sergey M․ <[email protected]> | 2019-02-14 23:40:46 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2019-02-14 23:43:16 +0700 |
commit | 794c1b6e02591b04da931fa59745bc47bfae7492 (patch) | |
tree | e1cd137d61149ef5e07a45e27184b1fb114971a2 | |
parent | 7bee705d8f110f09d8e72b1c863ff197ccc1d4f1 (diff) | |
download | youtube-dl-794c1b6e02591b04da931fa59745bc47bfae7492.tar.gz youtube-dl-794c1b6e02591b04da931fa59745bc47bfae7492.zip |
[vshare] Pass Referer to download request (closes #19205, closes #19221)
-rw-r--r-- | youtube_dl/extractor/vshare.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vshare.py b/youtube_dl/extractor/vshare.py index e4ec77889..c631ac1fa 100644 --- a/youtube_dl/extractor/vshare.py +++ b/youtube_dl/extractor/vshare.py @@ -48,7 +48,7 @@ class VShareIE(InfoExtractor): webpage = self._download_webpage( 'https://vshare.io/v/%s/width-650/height-430/1' % video_id, - video_id) + video_id, headers={'Referer': url}) title = self._html_search_regex( r'<title>([^<]+)</title>', webpage, 'title') |