projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3a0ceb3
)
[njpwworld] Fix authentication (closes #15815)
author
Sergey M․
<dstftw@gmail.com>
Sat, 10 Mar 2018 15:35:47 +0000
(22:35 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 10 Mar 2018 15:35:47 +0000
(22:35 +0700)
youtube_dl/extractor/njpwworld.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/njpwworld.py
b/youtube_dl/extractor/njpwworld.py
index 9b5ad5a9f0c38427834fb9e942f018a7aa3c2cbf..febef097af5f3cb31b2e8c4f7ef1981a7285f88e 100644
(file)
--- 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',
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')
# /auth/login will return 302 for successful logins
if urlh.geturl() == 'https://njpwworld.com/auth/login':
self.report_warning('unable to login')