aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-03-10 22:35:47 +0700
committerSergey M․ <dstftw@gmail.com>2018-03-10 22:35:47 +0700
commitcc7f6c720e2607539c0d3bdac893424ebb839a6a (patch)
treee424b9119cb2a42f8c9de018934b65c9286afa2b /youtube_dl
parent3a0ceb32e2150e8bfaf6fc2402c995a0b138d4ac (diff)
[njpwworld] Fix authentication (closes #15815)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/njpwworld.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/njpwworld.py b/youtube_dl/extractor/njpwworld.py
index 9b5ad5a9f..febef097a 100644
--- a/youtube_dl/extractor/njpwworld.py
+++ b/youtube_dl/extractor/njpwworld.py
@@ -43,7 +43,8 @@ class NJPWWorldIE(InfoExtractor):
webpage, urlh = self._download_webpage_handle(
'https://njpwworld.com/auth/login', None,
note='Logging in', errnote='Unable to login',
- data=urlencode_postdata({'login_id': username, 'pw': password}))
+ data=urlencode_postdata({'login_id': username, 'pw': password}),
+ headers={'Referer': 'https://njpwworld.com/auth'})
# /auth/login will return 302 for successful logins
if urlh.geturl() == 'https://njpwworld.com/auth/login':
self.report_warning('unable to login')