mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-23 00:54:31 +01:00
[teachable] Fail with error message if no video URL found
This commit is contained in:
parent
f8a12427a9
commit
941e359e95
@ -170,6 +170,7 @@ class TeachableIE(TeachableBaseIE):
|
|||||||
r'class=["\'](?:inner-)?lesson-locked',
|
r'class=["\'](?:inner-)?lesson-locked',
|
||||||
r'>LESSON LOCKED<')):
|
r'>LESSON LOCKED<')):
|
||||||
self.raise_login_required('Lecture contents locked')
|
self.raise_login_required('Lecture contents locked')
|
||||||
|
raise ExtractorError('Unable to find video URL')
|
||||||
|
|
||||||
title = self._og_search_title(webpage, default=None)
|
title = self._og_search_title(webpage, default=None)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user