diff options
author | Unknown <blackjack4494@web.de> | 2020-09-03 04:06:30 +0200 |
---|---|---|
committer | Unknown <blackjack4494@web.de> | 2020-09-03 04:06:30 +0200 |
commit | 53d26f24069590f47985dfd1eb3f4c90642e676a (patch) | |
tree | 7768d8013f0e0c4a304a8284b3a4a6ede721bd58 /youtube_dl/extractor/teletask.py | |
parent | e367127957d37b51720ebc6f8cea5430ef67e863 (diff) | |
download | hypervideo-pre-53d26f24069590f47985dfd1eb3f4c90642e676a.tar.lz hypervideo-pre-53d26f24069590f47985dfd1eb3f4c90642e676a.tar.xz hypervideo-pre-53d26f24069590f47985dfd1eb3f4c90642e676a.zip |
[skip travis] revert automerge for now
Diffstat (limited to 'youtube_dl/extractor/teletask.py')
-rw-r--r-- | youtube_dl/extractor/teletask.py | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/youtube_dl/extractor/teletask.py b/youtube_dl/extractor/teletask.py deleted file mode 100644 index b9e2ef8ca..000000000 --- a/youtube_dl/extractor/teletask.py +++ /dev/null @@ -1,53 +0,0 @@ -from __future__ import unicode_literals - -import re - -from .common import InfoExtractor -from ..utils import unified_strdate - - -class TeleTaskIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?tele-task\.de/archive/video/html5/(?P<id>[0-9]+)' - _TEST = { - 'url': 'http://www.tele-task.de/archive/video/html5/26168/', - 'info_dict': { - 'id': '26168', - 'title': 'Duplicate Detection', - }, - 'playlist': [{ - 'md5': '290ef69fb2792e481169c3958dbfbd57', - 'info_dict': { - 'id': '26168-speaker', - 'ext': 'mp4', - 'title': 'Duplicate Detection', - 'upload_date': '20141218', - } - }, { - 'md5': 'e1e7218c5f0e4790015a437fcf6c71b4', - 'info_dict': { - 'id': '26168-slides', - 'ext': 'mp4', - 'title': 'Duplicate Detection', - 'upload_date': '20141218', - } - }] - } - - def _real_extract(self, url): - lecture_id = self._match_id(url) - webpage = self._download_webpage(url, lecture_id) - - title = self._html_search_regex( - r'itemprop="name">([^<]+)</a>', webpage, 'title') - upload_date = unified_strdate(self._html_search_regex( - r'Date:</td><td>([^<]+)</td>', webpage, 'date', fatal=False)) - - entries = [{ - 'id': '%s-%s' % (lecture_id, format_id), - 'url': video_url, - 'title': title, - 'upload_date': upload_date, - } for format_id, video_url in re.findall( - r'<video class="([^"]+)"[^>]*>\s*<source src="([^"]+)"', webpage)] - - return self.playlist_result(entries, lecture_id, title) |