浏览代码

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

Sergey M․ 5 年之前
父节点
当前提交
941e359e95
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)