]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[teachable] Fail with error message if no video URL found
authorSergey M․ <dstftw@gmail.com>
Thu, 26 Dec 2019 17:26:12 +0000 (00:26 +0700)
committerSergey M․ <dstftw@gmail.com>
Thu, 26 Dec 2019 17:26:12 +0000 (00:26 +0700)
youtube_dl/extractor/teachable.py

index b82414c3df4de70e16727dae480522a132136020..6b7f13b437e3f3671b355b7dabcea9fd5056969e 100644 (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)