From: Sergey M․ Date: Thu, 26 Dec 2019 17:26:12 +0000 (+0700) Subject: [teachable] Fail with error message if no video URL found X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=941e359e9512c1c75d42cb5b4b248816e16edb82;p=youtube-dl.git [teachable] Fail with error message if no video URL found --- diff --git a/youtube_dl/extractor/teachable.py b/youtube_dl/extractor/teachable.py index b82414c3d..6b7f13b43 100644 --- 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)