diff options
author | felix <[email protected]> | 2016-11-28 17:17:56 +0100 |
---|---|---|
committer | Sergey M <[email protected]> | 2016-11-28 23:17:56 +0700 |
commit | 89533199160d484f94a9923016cb9a7921ae4956 (patch) | |
tree | c0a5ee45a0c73cef6c8a99a030772129a7461fff /youtube_dl/extractor/normalboots.py | |
parent | 51b1378eeddb60bd99199741f2fcee29d8389142 (diff) | |
download | youtube-dl-89533199160d484f94a9923016cb9a7921ae4956.tar.gz youtube-dl-89533199160d484f94a9923016cb9a7921ae4956.zip |
[screenwavemedia] Remove extractor
Rewrite TeamFourStar and Normalboots extractors in terms of JWPlatform
Diffstat (limited to 'youtube_dl/extractor/normalboots.py')
-rw-r--r-- | youtube_dl/extractor/normalboots.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/youtube_dl/extractor/normalboots.py b/youtube_dl/extractor/normalboots.py index 6aa0895b8..61fe571df 100644 --- a/youtube_dl/extractor/normalboots.py +++ b/youtube_dl/extractor/normalboots.py @@ -2,7 +2,7 @@ from __future__ import unicode_literals from .common import InfoExtractor -from .screenwavemedia import ScreenwaveMediaIE +from .jwplatform import JWPlatformIE from ..utils import ( unified_strdate, @@ -25,7 +25,7 @@ class NormalbootsIE(InfoExtractor): # m3u8 download 'skip_download': True, }, - 'add_ie': ['ScreenwaveMedia'], + 'add_ie': ['JWPlatform'], } def _real_extract(self, url): @@ -39,15 +39,13 @@ class NormalbootsIE(InfoExtractor): r'<span style="text-transform:uppercase; font-size:inherit;">[A-Za-z]+, (?P<date>.*)</span>', webpage, 'date', fatal=False)) - screenwavemedia_url = self._html_search_regex( - ScreenwaveMediaIE.EMBED_PATTERN, webpage, 'screenwave URL', - group='url') + jwplatform_url = JWPlatformIE._extract_url(webpage) return { '_type': 'url_transparent', 'id': video_id, - 'url': screenwavemedia_url, - 'ie_key': ScreenwaveMediaIE.ie_key(), + 'url': jwplatform_url, + 'ie_key': JWPlatformIE.ie_key(), 'title': self._og_search_title(webpage), 'description': self._og_search_description(webpage), 'thumbnail': self._og_search_thumbnail(webpage), |