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/nzz.py | |
| parent | e367127957d37b51720ebc6f8cea5430ef67e863 (diff) | |
[skip travis] revert automerge for now
Diffstat (limited to 'youtube_dl/extractor/nzz.py')
| -rw-r--r-- | youtube_dl/extractor/nzz.py | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/youtube_dl/extractor/nzz.py b/youtube_dl/extractor/nzz.py deleted file mode 100644 index 61ee77adb..000000000 --- a/youtube_dl/extractor/nzz.py +++ /dev/null @@ -1,43 +0,0 @@ -# coding: utf-8 -from __future__ import unicode_literals - -import re - -from .common import InfoExtractor -from ..utils import ( - extract_attributes, -) - - -class NZZIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?nzz\.ch/(?:[^/]+/)*[^/?#]+-ld\.(?P<id>\d+)' - _TESTS = [{ - 'url': 'http://www.nzz.ch/zuerich/gymizyte/gymizyte-schreiben-schueler-heute-noch-diktate-ld.9153', - 'info_dict': { - 'id': '9153', - }, - 'playlist_mincount': 6, - }, { - 'url': 'https://www.nzz.ch/video/nzz-standpunkte/cvp-auf-der-suche-nach-dem-mass-der-mitte-ld.1368112', - 'info_dict': { - 'id': '1368112', - }, - 'playlist_count': 1, - }] - - def _real_extract(self, url): - page_id = self._match_id(url) - webpage = self._download_webpage(url, page_id) - - entries = [] - for player_element in re.findall( - r'(<[^>]+class="kalturaPlayer[^"]*"[^>]*>)', webpage): - player_params = extract_attributes(player_element) - if player_params.get('data-type') not in ('kaltura_singleArticle',): - self.report_warning('Unsupported player type') - continue - entry_id = player_params['data-id'] - entries.append(self.url_result( - 'kaltura:1750922:' + entry_id, 'Kaltura', entry_id)) - - return self.playlist_result(entries, page_id) |
