mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 10:24:33 +01:00
Fix teachable course download
This commit is contained in:
parent
4eda10499e
commit
c20b0e4fa7
@ -139,9 +139,9 @@ class TeachableIE(TeachableBaseIE):
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _is_teachable(webpage):
|
def _is_teachable(webpage):
|
||||||
return 'teachableTracker.linker:autoLink' in webpage and re.search(
|
return 'teachableTracker.linker:autoLink' in webpage and (
|
||||||
r'<link[^>]+href=["\']https?://process\.fs\.teachablecdn\.com',
|
re.search(r'<link[^>]+href=["\']https?://process\.fs\.teachablecdn\.com', webpage) or
|
||||||
webpage)
|
re.search(r'<img[^>]+src=["\']https?://process\.fs\.teachablecdn\.com', webpage))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _extract_url(webpage, source_url):
|
def _extract_url(webpage, source_url):
|
||||||
|
Loading…
Reference in New Issue
Block a user