]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/atttechchannel.py
6ff4ec0ad357271ea6370edaeae711acaaa7394a
1 from .common
import InfoExtractor
2 from ..utils
import unified_strdate
5 class ATTTechChannelIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://techchannel\.att\.com/play-video\.cfm/([^/]+/)*(?P<id>.+)'
8 'url': 'http://techchannel.att.com/play-video.cfm/2014/1/27/ATT-Archives-The-UNIX-System-Making-Computers-Easier-to-Use',
11 'display_id': 'ATT-Archives-The-UNIX-System-Making-Computers-Easier-to-Use',
13 'title': 'AT&T Archives : The UNIX System: Making Computers Easier to Use',
14 'description': 'A 1982 film about UNIX is the foundation for software in use around Bell Labs and AT&T.',
15 'thumbnail': r
're:^https?://.*\.jpg$',
16 'upload_date': '20140127',
20 'skip_download': True,
24 def _real_extract(self
, url
):
25 display_id
= self
._match
_id
(url
)
27 webpage
= self
._download
_webpage
(url
, display_id
)
29 video_url
= self
._search
_regex
(
30 r
"url\s*:\s*'(rtmp://[^']+)'",
33 video_id
= self
._search
_regex
(
34 r
'mediaid\s*=\s*(\d+)',
35 webpage
, 'video id', fatal
=False)
37 title
= self
._og
_search
_title
(webpage
)
38 description
= self
._og
_search
_description
(webpage
)
39 thumbnail
= self
._og
_search
_thumbnail
(webpage
)
40 upload_date
= unified_strdate(self
._search
_regex
(
41 r
'[Rr]elease\s+date:\s*(\d{1,2}/\d{1,2}/\d{4})',
42 webpage
, 'upload date', fatal
=False), False)
46 'display_id': display_id
,
50 'description': description
,
51 'thumbnail': thumbnail
,
52 'upload_date': upload_date
,