]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/teachingchannel.py
   1 from __future__ 
import unicode_literals
 
   3 from .common 
import InfoExtractor
 
   6 class TeachingChannelIE(InfoExtractor
): 
   7     _VALID_URL 
= r
'https?://(?:www\.)?teachingchannel\.org/videos?/(?P<id>[^/?&#]+)' 
  10         'url': 'https://www.teachingchannel.org/videos/teacher-teaming-evolution', 
  14             'title': 'A History of Teaming', 
  15             'description': 'md5:2a9033db8da81f2edffa4c99888140b3', 
  17             'upload_date': '20170316', 
  18             'timestamp': 1489691297, 
  21             'skip_download': True, 
  23         'add_ie': ['JWPlatform'], 
  26     def _real_extract(self
, url
): 
  27         display_id 
= self
._match
_id
(url
) 
  28         webpage 
= self
._download
_webpage
(url
, display_id
) 
  29         mid 
= self
._search
_regex
( 
  30             r
'(?:data-mid=["\']|
id=["\']jw-video-player-)([a-zA-Z0-9]{8})', 
  33         return self.url_result('jwplatform:' + mid, 'JWPlatform', mid)