A feature-rich command-line audio/video downloader
[njpwworld] Fix authentication (closes #15815)
Sergey M․cc7f6c720e26
diff --git a/youtube_dl/extractor/njpwworld.py b/youtube_dl/extractor/njpwworld.pyindex 9b5ad5a9f0..febef097af 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 loginsif urlh.geturl() == 'https://njpwworld.com/auth/login':self.report_warning('unable to login')