[ie/pornhub] Fix login support (#9227)

Closes #7981
Authored by: feederbox826
This commit is contained in:
feederbox826 2024-02-17 17:46:05 -05:00 committed by GitHub
parent 0085e2bab8
commit de954c1b4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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