A feature-rich command-line audio/video downloader
[udemy] Fix authentication for localized layout (Closes #9594)
Sergey M․807cf7b07f6a
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.pyindex 13e0cd2374..89b8695591 100644--- a/youtube_dl/extractor/udemy.py+++ b/youtube_dl/extractor/udemy.py@@ -142,7 +142,9 @@ class UdemyIE(InfoExtractor):self._LOGIN_URL, None, 'Downloading login popup')def is_logged(webpage):- return any(p in webpage for p in ['href="https://www.udemy.com/user/logout/', '>Logout<'])+ return any(re.search(p, webpage) for p in (+ r'href=["\'](?:https://www\.udemy\.com)?/user/logout/',+ r'>Logout<'))# already logged inif is_logged(login_popup):