1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-18 07:05:41 +07:00

[extractors] Use http_headers for setting the User-Agent and the Referer

This commit is contained in:
Jaime Marquínez Ferrándiz
2015-01-24 18:19:58 +01:00
parent 3fcfb8e9fa
commit e1554a407d
5 changed files with 9 additions and 8 deletions

View File

@@ -62,5 +62,7 @@ def _real_extract(self, url):
'title': title,
'formats': formats,
'thumbnail': thumbnail,
'http_referer': iframe_url,
'http_headers': {
'Referer': iframe_url,
},
}