From: Sergey M․ Date: Sun, 20 Jan 2019 15:07:01 +0000 (+0700) Subject: [tnaflix] Pass Referer in metadata request (closes #18925) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=07f9febc4b86a9cd819329f3a7daafdbe9455f40;p=youtube-dl [tnaflix] Pass Referer in metadata request (closes #18925) --- diff --git a/youtube_dl/extractor/tnaflix.py b/youtube_dl/extractor/tnaflix.py index 6798ef4c3..b3573c6e0 100644 --- 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 = []