projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8a1242
)
[teachable] Fail with error message if no video URL found
author
Sergey M․
<dstftw@gmail.com>
Thu, 26 Dec 2019 17:26:12 +0000
(
00:26
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 26 Dec 2019 17:26:12 +0000
(
00:26
+0700)
youtube_dl/extractor/teachable.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/teachable.py
b/youtube_dl/extractor/teachable.py
index b82414c3df4de70e16727dae480522a132136020..6b7f13b437e3f3671b355b7dabcea9fd5056969e 100644
(file)
--- 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)