]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/teachingchannel.py
1 from __future__
import unicode_literals
5 from .common
import InfoExtractor
6 from .ooyala
import OoyalaIE
9 class TeachingChannelIE(InfoExtractor
):
10 _VALID_URL
= r
'https?://www\.teachingchannel\.org/videos/(?P<title>.+)'
13 'url': 'https://www.teachingchannel.org/videos/teacher-teaming-evolution',
14 'md5': '3d6361864d7cac20b57c8784da17166f',
16 'id': 'F3bnlzbToeI6pLEfRyrlfooIILUjz4nM',
18 'title': 'A History of Teaming',
19 'description': 'md5:2a9033db8da81f2edffa4c99888140b3',
23 'skip_download': True,
28 def _real_extract(self
, url
):
29 mobj
= re
.match(self
._VALID
_URL
, url
)
30 title
= mobj
.group('title')
31 webpage
= self
._download
_webpage
(url
, title
)
32 ooyala_code
= self
._search
_regex
(
33 r
'data-embed-code=\'(.+?
)\'', webpage, 'ooyala code
')
35 return OoyalaIE._build_url_result(ooyala_code)