Replace 'referer' with 'http_referer'
authorSergey M․ <dstftw@gmail.com>
Tue, 25 Mar 2014 14:53:26 +0000 (21:53 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 25 Mar 2014 14:53:26 +0000 (21:53 +0700)
youtube_dl/downloader/http.py
youtube_dl/extractor/auengine.py

index 16a2dce3f6a84998523351c701196ee83a5e33e3..cc8b9c9a7f5cac66a4b59d460c7678917aa98cc0 100644 (file)
@@ -23,8 +23,8 @@ class HttpFD(FileDownloader):
         headers = {'Youtubedl-no-compression': 'True'}
         if 'user_agent' in info_dict:
             headers['Youtubedl-user-agent'] = info_dict['user_agent']
-        if 'referer' in info_dict:
-            headers['Referer'] = info_dict['referer']
+        if 'http_referer' in info_dict:
+            headers['Referer'] = info_dict['http_referer']
         basic_request = compat_urllib_request.Request(url, None, headers)
         request = compat_urllib_request.Request(url, None, headers)
 
index 926d733c549ff9010ea13a8faedf5425f6ef0547..20bf12550d4b4493982ca3ea6f31578368e31aba 100644 (file)
@@ -51,5 +51,5 @@ class AUEngineIE(InfoExtractor):
             'url': video_url,
             'title': title,
             'thumbnail': thumbnail,
-            'referer': 'http://www.auengine.com/flowplayer/flowplayer.commercial-3.2.14.swf',
+            'http_referer': 'http://www.auengine.com/flowplayer/flowplayer.commercial-3.2.14.swf',
         }