logo

youtube-dl

[mirror] Download/Watch videos from video hosters
commit: f8a12427a9ccdb8506be64c2b56eee7f8872ac3f
parent 7ea55819ac9fdd6f06f527cf3302ab550bcf3219
Author: Sergey M․ <dstftw@gmail.com>
Date:   Fri, 27 Dec 2019 00:18:37 +0700

[teachable] Improve locked lessons detection (#23528)

Diffstat:

Myoutube_dl/extractor/teachable.py5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/teachable.py b/youtube_dl/extractor/teachable.py @@ -165,7 +165,10 @@ 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') title = self._og_search_title(webpage, default=None)