1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[crunchyroll] fix is_logged check

This commit is contained in:
Remita Amine 2019-03-02 08:25:47 +01:00
parent dca0e0040a
commit a8f83f0c56

View file

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