Skip to content

Commit

Permalink
[teachable] Improve locked lessons detection (#23528)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and meunierd committed Feb 13, 2020
1 parent 27428b0 commit 76989c7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/teachable.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ def _real_extract(self, url):
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')

title = self._og_search_title(webpage, default=None)
Expand Down

0 comments on commit 76989c7

Please sign in to comment.