Skip to content

Commit

Permalink
[vshare] Pass Referer to download request (closes #19205, closes #19221)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and meunierd committed Dec 27, 2019
1 parent 8e03ccb commit 07ac6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/vshare.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _real_extract(self, url):

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')
Expand Down

0 comments on commit 07ac6ca

Please sign in to comment.