From f17350d835a6ec4a87f788ed007941674fb5f79f Mon Sep 17 00:00:00 2001 From: Xonshiz Date: Sun, 5 Jan 2020 23:05:33 -0500 Subject: [PATCH] Follow up fix for #111 Follow up fix for #111 --- anime_dl/common/browser_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anime_dl/common/browser_instance.py b/anime_dl/common/browser_instance.py index 5ead8b0..aee08f1 100644 --- a/anime_dl/common/browser_instance.py +++ b/anime_dl/common/browser_instance.py @@ -89,7 +89,7 @@ def login_crunchyroll(url, username, password, country): def login_check(html_source, cookies=None): # Open the page and check the title. CrunchyRoll redirects the user and the title has the text "Redirecting...". # If this is not found, you're probably not logged in and you'll just get 360p or 480p. - if "href=\"/logout\"" in html_source: + if b'href="/logout"' in html_source: return True, cookies else: print("Let me check again...")