From d524ac1898ad680e3476be30e218f44e42961374 Mon Sep 17 00:00:00 2001 From: Epsilon Spider <105926847+epsilonSpider@users.noreply.github.com> Date: Sat, 11 Feb 2023 14:42:25 -0500 Subject: [PATCH] Check for oreilly login with new url Resolves #30884 --- youtube_dl/extractor/safari.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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