mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-15 15:52:38 +00:00
[teachable] Improve locked lessons detection (#23528)
This commit is contained in:
parent
7ea55819ac
commit
f8a12427a9
1 changed files with 4 additions and 1 deletions
|
@ -165,7 +165,10 @@ class TeachableIE(TeachableBaseIE):
|
||||||
if any(re.search(p, webpage) for p in (
|
if any(re.search(p, webpage) for p in (
|
||||||
r'class=["\']lecture-contents-locked',
|
r'class=["\']lecture-contents-locked',
|
||||||
r'>\s*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')
|
self.raise_login_required('Lecture contents locked')
|
||||||
|
|
||||||
title = self._og_search_title(webpage, default=None)
|
title = self._og_search_title(webpage, default=None)
|
||||||
|
|
Loading…
Reference in a new issue