mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 09:07:58 +01:00
[teachable] Fail with error message if no video URL found
This commit is contained in:
parent
f8a12427a9
commit
941e359e95
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ def _real_extract(self, url):
|
|||
r'class=["\'](?:inner-)?lesson-locked',
|
||||
r'>LESSON LOCKED<')):
|
||||
self.raise_login_required('Lecture contents locked')
|
||||
raise ExtractorError('Unable to find video URL')
|
||||
|
||||
title = self._og_search_title(webpage, default=None)
|
||||
|
||||
|
|
Loading…
Reference in a new issue