[crunchyroll] fix is_logged check
authorRemita Amine <remitamine@gmail.com>
Sat, 2 Mar 2019 07:25:47 +0000 (08:25 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 2 Mar 2019 07:25:47 +0000 (08:25 +0100)
youtube_dl/extractor/crunchyroll.py

index ce2e2d3ba2c7f041f7a90eb85957c9e5800e838e..fd1e7afad298a6df57ad86a77e31116c9133b71b 100644 (file)
@@ -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):