Fix bug is_logged function
closes #1423 Signed-off-by: Vincent Texier <vit@free.fr> Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
parent
41f07101cd
commit
8d3b110934
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class ForbiddenVideo(UserError):
|
||||||
class BaseYoutubePage(BasePage):
|
class BaseYoutubePage(BasePage):
|
||||||
def is_logged(self):
|
def is_logged(self):
|
||||||
try:
|
try:
|
||||||
self.parser.select(self.document.getroot(), 'span#yt-masthead-user-displayname', 1)
|
self.parser.select(self.document.getroot(), 'span#yt-masthead-account-picker', 1)
|
||||||
except BrokenPageError:
|
except BrokenPageError:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue