From de954c1b4d3a6db8a6525507e65303c7bb03f39f Mon Sep 17 00:00:00 2001 From: feederbox826 <144178721+feederbox826@users.noreply.github.com> Date: Sat, 17 Feb 2024 17:46:05 -0500 Subject: [PATCH] [ie/pornhub] Fix login support (#9227) Closes #7981 Authored by: feederbox826 --- yt_dlp/extractor/pornhub.py | 4 ++-- 1 file 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 @@ def _login(self, host): 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