aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfeederbox826 <144178721+feederbox826@users.noreply.github.com>2024-02-17 17:46:05 -0500
committerGitHub <noreply@github.com>2024-02-17 22:46:05 +0000
commitde954c1b4d3a6db8a6525507e65303c7bb03f39f (patch)
tree2e4252d00f04f1b03fef065e7c065da343d4b7f1
parent0085e2bab8465ee7d46d16fcade3ed5e96cc8a48 (diff)
[ie/pornhub] Fix login support (#9227)
Closes #7981 Authored by: feederbox826
-rw-r--r--yt_dlp/extractor/pornhub.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/pornhub.py b/yt_dlp/extractor/pornhub.py
index 999d038d4..29a3e43cc 100644
--- a/yt_dlp/extractor/pornhub.py
+++ b/yt_dlp/extractor/pornhub.py
@@ -87,8 +87,8 @@ class PornHubBaseIE(InfoExtractor):
def is_logged(webpage):
return any(re.search(p, webpage) for p in (
- r'class=["\']signOut',
- r'>Sign\s+[Oo]ut\s*<'))
+ r'id="profileMenuDropdown"',
+ r'class="ph-icon-logout"'))
if is_logged(login_page):
self._logged_in = True