[vshare] Pass Referer to download request (closes #19205, closes #19221)
authorSergey M․ <dstftw@gmail.com>
Thu, 14 Feb 2019 16:40:46 +0000 (23:40 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 14 Feb 2019 16:43:16 +0000 (23:43 +0700)
youtube_dl/extractor/vshare.py

index e4ec778896692c84ce7be54d9628b64be93de5f7..c631ac1faa7243ebc0424330859720f5dc2c181b 100644 (file)
@@ -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')