mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 01:42:50 +01:00
[ie/pornhub] Fix login support (#9227)
Closes #7981 Authored by: feederbox826
This commit is contained in:
parent
0085e2bab8
commit
de954c1b4d
@ -87,8 +87,8 @@ def _login(self, host):
|
|||||||
|
|
||||||
def is_logged(webpage):
|
def is_logged(webpage):
|
||||||
return any(re.search(p, webpage) for p in (
|
return any(re.search(p, webpage) for p in (
|
||||||
r'class=["\']signOut',
|
r'id="profileMenuDropdown"',
|
||||||
r'>Sign\s+[Oo]ut\s*<'))
|
r'class="ph-icon-logout"'))
|
||||||
|
|
||||||
if is_logged(login_page):
|
if is_logged(login_page):
|
||||||
self._logged_in = True
|
self._logged_in = True
|
||||||
|
Loading…
Reference in New Issue
Block a user