1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-18 07:05:41 +07:00

[teachable] Add support for teachable based platform sites (closes #5451, closes #18150, closes #18272)

This commit is contained in:
Sergey M․
2018-12-09 22:28:24 +07:00
parent 3ad6dabd33
commit 5ee7ae5c75
3 changed files with 115 additions and 27 deletions

View File

@@ -109,6 +109,7 @@
from .xfileshare import XFileShareIE
from .cloudflarestream import CloudflareStreamIE
from .peertube import PeerTubeIE
from .teachable import TeachableIE
from .indavideo import IndavideoEmbedIE
from .apa import APAIE
from .foxnews import FoxNewsIE
@@ -3112,6 +3113,10 @@ def _real_extract(self, url):
return self.playlist_from_matches(
peertube_urls, video_id, video_title, ie=PeerTubeIE.ie_key())
teachable_url = TeachableIE._extract_url(webpage, url)
if teachable_url:
return self.url_result(teachable_url)
indavideo_urls = IndavideoEmbedIE._extract_urls(webpage)
if indavideo_urls:
return self.playlist_from_matches(