Commit 8d3b1109 authored by Vincent Texier's avatar Vincent Texier Committed by Romain Bignon

Fix bug is_logged function

closes #1423
Signed-off-by: 's avatarVincent Texier <vit@free.fr>
Signed-off-by: Romain Bignon's avatarRomain Bignon <romain@symlink.me>
parent 41f07101
......@@ -67,7 +67,7 @@ class ForbiddenVideo(UserError):
class BaseYoutubePage(BasePage):
def is_logged(self):
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:
return False
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment