projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ea5581
)
[teachable] Improve locked lessons detection (#23528)
author
Sergey M․
<dstftw@gmail.com>
Thu, 26 Dec 2019 17:18:37 +0000
(
00:18
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 26 Dec 2019 17:18:37 +0000
(
00:18
+0700)
youtube_dl/extractor/teachable.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/teachable.py
b/youtube_dl/extractor/teachable.py
index 7d2e34b3bc4204d3ec999968c1ac76db7687a0c4..b82414c3df4de70e16727dae480522a132136020 100644
(file)
--- 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)