diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2024-03-10 20:48:44 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2024-03-11 00:52:28 +0530 |
commit | 615a84447e8322720be77a0e64298d7f42848693 (patch) | |
tree | 46c0a3472856badee38ff6ed27d8b2742b348afe /yt_dlp/extractor/getcourseru.py | |
parent | ed3bb2b0a12c44334e0d09481752dabf2ca1dc13 (diff) |
[cleanup] Misc (#8968)
Authored by: pukkandan, bashonly, seproDev
Diffstat (limited to 'yt_dlp/extractor/getcourseru.py')
-rw-r--r-- | yt_dlp/extractor/getcourseru.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/extractor/getcourseru.py b/yt_dlp/extractor/getcourseru.py index 6fdbcd736..144321ad6 100644 --- a/yt_dlp/extractor/getcourseru.py +++ b/yt_dlp/extractor/getcourseru.py @@ -160,9 +160,8 @@ class GetCourseRuIE(InfoExtractor): self._login(hostname, username, password) display_id = self._match_id(url) - # NB: 404 is returned due to yt-dlp not properly following redirects #9020 - webpage, urlh = self._download_webpage_handle(url, display_id, expected_status=404) - if self._LOGIN_URL_PATH in urlh.url or urlh.status == 404: + webpage, urlh = self._download_webpage_handle(url, display_id) + if self._LOGIN_URL_PATH in urlh.url: raise ExtractorError( f'This video is only available for registered users. {self._login_hint("any", netrc=hostname)}', expected=True) |