Browse Source

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

master-ytdl-org
Sergey M․ 6 years ago
parent
commit
5ee7ae5c75
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
3 changed files with 115 additions and 27 deletions
  1. +4
    -4
      youtube_dl/extractor/extractors.py
  2. +5
    -0
      youtube_dl/extractor/generic.py
  3. +106
    -23
      youtube_dl/extractor/teachable.py

+ 4
- 4
youtube_dl/extractor/extractors.py View File

@ -1091,6 +1091,10 @@ from .tass import TassIE
from .tastytrade import TastyTradeIE
from .tbs import TBSIE
from .tdslifeway import TDSLifewayIE
from .teachable import (
TeachableIE,
TeachableCourseIE,
)
from .teachertube import (
TeacherTubeIE,
TeacherTubeUserIE,
@ -1240,10 +1244,6 @@ from .uplynk import (
UplynkIE,
UplynkPreplayIE,
)
from .upskill import (
UpskillIE,
UpskillCourseIE,
)
from .urort import UrortIE
from .urplay import URPlayIE
from .usanetwork import USANetworkIE


+ 5
- 0
youtube_dl/extractor/generic.py View File

@ -109,6 +109,7 @@ from .vice import ViceIE
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 @@ class GenericIE(InfoExtractor):
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(


youtube_dl/extractor/upskill.py → youtube_dl/extractor/teachable.py View File


Loading…
Cancel
Save