[extractors] Use http_headers for setting the User-Agent and the Referer
[youtube-dl] / youtube_dl / extractor / videomega.py
index fc6e05fe0a2d60f42b1f5eef6d2d2e90994f86b7..27303031620a8c126797bcdd6207d2f2355c74be 100644 (file)
@@ -62,5 +62,7 @@ class VideoMegaIE(InfoExtractor):
             'title': title,
             'formats': formats,
             'thumbnail': thumbnail,
-            'http_referer': iframe_url,
+            'http_headers': {
+                'Referer': iframe_url,
+            },
         }