]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/teletask.py
3 from .common
import InfoExtractor
4 from ..utils
import unified_strdate
7 class TeleTaskIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:www\.)?tele-task\.de/archive/video/html5/(?P<id>[0-9]+)'
10 'url': 'http://www.tele-task.de/archive/video/html5/26168/',
13 'title': 'Duplicate Detection',
16 'md5': '290ef69fb2792e481169c3958dbfbd57',
18 'id': '26168-speaker',
20 'title': 'Duplicate Detection',
21 'upload_date': '20141218',
24 'md5': 'e1e7218c5f0e4790015a437fcf6c71b4',
28 'title': 'Duplicate Detection',
29 'upload_date': '20141218',
34 def _real_extract(self
, url
):
35 lecture_id
= self
._match
_id
(url
)
36 webpage
= self
._download
_webpage
(url
, lecture_id
)
38 title
= self
._html
_search
_regex
(
39 r
'itemprop="name">([^<]+)</a>', webpage
, 'title')
40 upload_date
= unified_strdate(self
._html
_search
_regex
(
41 r
'Date:</td><td>([^<]+)</td>', webpage
, 'date', fatal
=False))
44 'id': '%s-%s' % (lecture_id
, format_id
),
47 'upload_date': upload_date
,
48 } for format_id
, video_url
in re
.findall(
49 r
'<video class="([^"]+)"[^>]*>\s*<source src="([^"]+)"', webpage
)]
51 return self
.playlist_result(entries
, lecture_id
, title
)