aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMozi <29089388+pzhlkj6612@users.noreply.github.com>2023-11-12 03:54:53 +0800
committerGitHub <noreply@github.com>2023-11-11 19:54:53 +0000
commit9b5bedf13a3323074daceb0ec6ebb3cc6e0b9684 (patch)
treeddf82661bc11a3c734f96d0236725ba3d10a2046
parentcb480e390d85fb3a598c1b6d5eef3438ce729fc9 (diff)
[ie/brilliantpala] Fix cookies support (#8352)
Authored by: pzhlkj6612
-rw-r--r--yt_dlp/extractor/brilliantpala.py4
1 files changed, 2 insertions, 2 deletions
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 @@ class BrilliantpalaBaseIE(InfoExtractor):
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<username>[^"]+)"', webpage, 'stream page info', 'username')
+ r'"username"\s*:\s*"(?P<username>[^"]+)"', webpage, 'logged-in username')
def _perform_login(self, username, password):
login_form = self._hidden_inputs(self._download_webpage(