about summary refs log tree commit diff
path: root/youtube_dl/extractor/wdr.py
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-01-24 18:19:58 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-01-24 18:23:53 +0100
commite1554a407d8953d0ec4fabec7f5a3b3906d1029b (patch)
tree1027c06b3665bdff78d423e0cd3bd97f32af5c83 /youtube_dl/extractor/wdr.py
parent3fcfb8e9faf3cf1dcadedd6fecc5158a86d07065 (diff)
downloadyoutube-dl-e1554a407d8953d0ec4fabec7f5a3b3906d1029b.tar.gz
youtube-dl-e1554a407d8953d0ec4fabec7f5a3b3906d1029b.tar.xz
youtube-dl-e1554a407d8953d0ec4fabec7f5a3b3906d1029b.zip
[extractors] Use http_headers for setting the User-Agent and the Referer
Diffstat (limited to 'youtube_dl/extractor/wdr.py')
-rw-r--r--youtube_dl/extractor/wdr.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/youtube_dl/extractor/wdr.py b/youtube_dl/extractor/wdr.py
index 45466e31b..313b9c15d 100644
--- a/youtube_dl/extractor/wdr.py
+++ b/youtube_dl/extractor/wdr.py
@@ -169,7 +169,9 @@ class WDRMobileIE(InfoExtractor):
             'title': mobj.group('title'),
             'age_limit': int(mobj.group('age_limit')),
             'url': url,
-            'user_agent': 'mobile',
+            'http_headers': {
+                'User-Agent': 'mobile',
+            },
         }