aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/njpwworld.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/njpwworld.py')
-rw-r--r--yt_dlp/extractor/njpwworld.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/extractor/njpwworld.py b/yt_dlp/extractor/njpwworld.py
index 7b8a526f0..607838133 100644
--- a/yt_dlp/extractor/njpwworld.py
+++ b/yt_dlp/extractor/njpwworld.py
@@ -51,7 +51,7 @@ class NJPWWorldIE(InfoExtractor):
data=urlencode_postdata({'login_id': username, 'pw': password}),
headers={'Referer': 'https://front.njpwworld.com/auth'})
# /auth/login will return 302 for successful logins
- if urlh.geturl() == self._LOGIN_URL:
+ if urlh.url == self._LOGIN_URL:
self.report_warning('unable to login')
return False