Explorar o código

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

Sergey M․ %!s(int64=6) %!d(string=hai) anos
pai
achega
941e359e95
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      youtube_dl/extractor/teachable.py

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