1
0
mirror of https://github.com/l1ving/youtube-dl synced 2026-06-04 15:13:40 +08:00

Merge pull request #206 from ytdl-org/master

[pull] master from ytdl-org:master
This commit is contained in:
pull[bot]
2019-12-26 17:39:17 +00:00
committed by GitHub
Unverified
+5 -1
View File
@@ -165,8 +165,12 @@ class TeachableIE(TeachableBaseIE):
if any(re.search(p, webpage) for p in (
r'class=["\']lecture-contents-locked',
r'>\s*Lecture contents locked',
r'id=["\']lecture-locked')):
r'id=["\']lecture-locked',
# https://academy.tailoredtutors.co.uk/courses/108779/lectures/1955313
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)