1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-10 19:41:20 +00:00

[vshare] Pass Referer to download request (closes #19205, closes #19221)

This commit is contained in:
Sergey M․ 2019-02-14 23:40:46 +07:00
parent 7bee705d8f
commit 794c1b6e02
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -48,7 +48,7 @@ class VShareIE(InfoExtractor):
webpage = self._download_webpage( webpage = self._download_webpage(
'https://vshare.io/v/%s/width-650/height-430/1' % video_id, 'https://vshare.io/v/%s/width-650/height-430/1' % video_id,
video_id) video_id, headers={'Referer': url})
title = self._html_search_regex( title = self._html_search_regex(
r'<title>([^<]+)</title>', webpage, 'title') r'<title>([^<]+)</title>', webpage, 'title')