logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 07f9febc4b86a9cd819329f3a7daafdbe9455f40
parent fad4ceb53404227f471af2f3544c4c14a5df4acb
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 20 Jan 2019 22:07:01 +0700

[tnaflix] Pass Referer in metadata request (closes #18925)

Diffstat:

Myoutube_dl/extractor/tnaflix.py2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/tnaflix.py b/youtube_dl/extractor/tnaflix.py @@ -96,7 +96,7 @@ class TNAFlixNetworkBaseIE(InfoExtractor): cfg_xml = self._download_xml( cfg_url, display_id, 'Downloading metadata', - transform_source=fix_xml_ampersands) + transform_source=fix_xml_ampersands, headers={'Referer': url}) formats = []