Browse Source

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

master
Sergey M․ 5 years ago
parent
commit
941e359e95
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      youtube_dl/extractor/teachable.py

+ 1
- 0
youtube_dl/extractor/teachable.py View File

@ -170,6 +170,7 @@ class TeachableIE(TeachableBaseIE):
r'class=["\'](?:inner-)?lesson-locked', r'class=["\'](?:inner-)?lesson-locked',
r'>LESSON LOCKED<')): r'>LESSON LOCKED<')):
self.raise_login_required('Lecture contents locked') self.raise_login_required('Lecture contents locked')
raise ExtractorError('Unable to find video URL')
title = self._og_search_title(webpage, default=None) title = self._og_search_title(webpage, default=None)


Loading…
Cancel
Save