diff --git a/youtube_dl/extractor/safari.py b/youtube_dl/extractor/safari.py index 2cc665122..2d41482e5 100644 --- a/youtube_dl/extractor/safari.py +++ b/youtube_dl/extractor/safari.py @@ -38,7 +38,8 @@ class SafariBaseIE(InfoExtractor): 'Downloading login page') def is_logged(urlh): - return 'learning.oreilly.com/home/' in urlh.geturl() + return ('https://learning.oreilly.com/member/login/' == urlh.geturl() + or 'learning.oreilly.com/home/' in urlh.geturl()) if is_logged(urlh): self.LOGGED_IN = True