1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-30 05:01:21 +02:00

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

This commit is contained in:
Sergey M․ 2019-12-27 00:26:12 +07:00
parent f8a12427a9
commit 941e359e95
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

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