diff --git a/yt_dlp/extractor/brilliantpala.py b/yt_dlp/extractor/brilliantpala.py index 6fd5b8148..0bf8622c1 100644 --- a/yt_dlp/extractor/brilliantpala.py +++ b/yt_dlp/extractor/brilliantpala.py @@ -21,10 +21,10 @@ def _initialize_pre_login(self): def _get_logged_in_username(self, url, video_id): webpage, urlh = self._download_webpage_handle(url, video_id) - if self._LOGIN_API == urlh.url: + if urlh.url.startswith(self._LOGIN_API): self.raise_login_required() return self._html_search_regex( - r'"username"\s*:\s*"(?P[^"]+)"', webpage, 'stream page info', 'username') + r'"username"\s*:\s*"(?P[^"]+)"', webpage, 'logged-in username') def _perform_login(self, username, password): login_form = self._hidden_inputs(self._download_webpage(