[tnaflix] Pass Referer in metadata request (closes #18925)
authorSergey M․ <dstftw@gmail.com>
Sun, 20 Jan 2019 15:07:01 +0000 (22:07 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 20 Jan 2019 15:07:01 +0000 (22:07 +0700)
youtube_dl/extractor/tnaflix.py

index 6798ef4c3f32da387e17b2381bf2b1815bfdd119..b3573c6e077c3dff730f13a02710f81a2c2cf0e8 100644 (file)
@@ -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 = []