logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: 941e359e9512c1c75d42cb5b4b248816e16edb82
parent f8a12427a9ccdb8506be64c2b56eee7f8872ac3f
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 27 Dec 2019 00:26:12 +0700

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

Diffstat:

Myoutube_dl/extractor/teachable.py1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/youtube_dl/extractor/teachable.py b/youtube_dl/extractor/teachable.py @@ -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)