1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 04:43:21 +08:00

[teachable] Fail with error message if no video URL found

This commit is contained in:
Sergey M․ 2019-12-27 00:26:12 +07:00 committed by Joshua Lochner
parent d4d3dfba6d
commit 1b4ede841e

View File

@ -170,6 +170,7 @@ class TeachableIE(TeachableBaseIE):
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)