This commit is contained in:
Lorenzo Persichetti 2020-10-22 21:35:05 +07:00 committed by GitHub
commit e5624025c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -139,9 +139,13 @@ class TeachableIE(TeachableBaseIE):
@staticmethod
def _is_teachable(webpage):
return 'teachableTracker.linker:autoLink' in webpage and re.search(
r'<link[^>]+href=["\']https?://process\.fs\.teachablecdn\.com',
webpage)
return 'teachableTracker.linker:autoLink' in webpage and (
re.search(
r'<link[^>]+href=["\']https?://process\.fs\.teachablecdn\.com',
webpage)
or re.search(
r'<img[^>]+src=["\']https?://process\.fs\.teachablecdn\.com',
webpage))
@staticmethod
def _extract_url(webpage, source_url):