2
0
Эх сурвалжийг харах

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

Sergey M․ 5 жил өмнө
parent
commit
941e359e95

+ 1 - 0
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)