parent
ed3bb2b0a1
commit
615a84447e
19 changed files with 80 additions and 94 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue