Explorar o código

[crunchyroll] fix is_logged check

Remita Amine %!s(int64=6) %!d(string=hai) anos
pai
achega
a8f83f0c56
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/crunchyroll.py

+ 1 - 1
youtube_dl/extractor/crunchyroll.py

@@ -60,7 +60,7 @@ class CrunchyrollBaseIE(InfoExtractor):
             self._LOGIN_URL, None, 'Downloading login page')
 
         def is_logged(webpage):
-            return '<title>Redirecting' in webpage
+            return 'href="/logout"' in webpage
 
         # Already logged in
         if is_logged(login_page):