[weboob] [PATCH 1/1] [Youtube] Fix bug is_logged function

Vincent Texier vit at free.fr
Sat Jul 5 12:37:22 CEST 2014


closes #1423

Signed-off-by: Vincent Texier <vit at free.fr>
---
 modules/youtube/pages.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/youtube/pages.py b/modules/youtube/pages.py
index 66e29d7..0c2f6c8 100644
--- a/modules/youtube/pages.py
+++ b/modules/youtube/pages.py
@@ -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:
-- 
1.9.1




More information about the weboob mailing list