Jelajahi Sumber

[crunchyroll] fix is_logged check

Remita Amine 6 tahun lalu
induk
melakukan
a8f83f0c56
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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):