Skip to content

Commit

Permalink
[teachable] Fail with error message if no video URL found
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey M․ committed Dec 26, 2019
1 parent f8a1242 commit 941e359
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions youtube_dl/extractor/teachable.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def _real_extract(self, url):
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)

Expand Down

0 comments on commit 941e359

Please sign in to comment.