Skip to content

Commit

Permalink
[ie/pornhub] Fix login support (#9227)
Browse files Browse the repository at this point in the history
Closes #7981
Authored by: feederbox826
  • Loading branch information
feederbox826 committed Feb 17, 2024
1 parent 0085e2b commit de954c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yt_dlp/extractor/pornhub.py
Expand Up @@ -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
Expand Down

0 comments on commit de954c1

Please sign in to comment.