diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2015-01-24 18:19:58 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2015-01-24 18:23:53 +0100 |
commit | e1554a407d8953d0ec4fabec7f5a3b3906d1029b (patch) | |
tree | 1027c06b3665bdff78d423e0cd3bd97f32af5c83 /youtube_dl/extractor/appletrailers.py | |
parent | 3fcfb8e9faf3cf1dcadedd6fecc5158a86d07065 (diff) | |
download | youtube-dl-e1554a407d8953d0ec4fabec7f5a3b3906d1029b.tar.gz youtube-dl-e1554a407d8953d0ec4fabec7f5a3b3906d1029b.zip |
[extractors] Use http_headers for setting the User-Agent and the Referer
Diffstat (limited to 'youtube_dl/extractor/appletrailers.py')
-rw-r--r-- | youtube_dl/extractor/appletrailers.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/appletrailers.py b/youtube_dl/extractor/appletrailers.py index 7cd0482c7..70621946d 100644 --- a/youtube_dl/extractor/appletrailers.py +++ b/youtube_dl/extractor/appletrailers.py @@ -129,7 +129,9 @@ class AppleTrailersIE(InfoExtractor): 'thumbnail': thumbnail, 'upload_date': upload_date, 'uploader_id': uploader_id, - 'user_agent': 'QuickTime compatible (youtube-dl)', + 'http_headers': { + 'User-Agent': 'QuickTime compatible (youtube-dl)', + }, }) return { |