aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/thestar.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/thestar.py')
-rw-r--r--youtube_dl/extractor/thestar.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/youtube_dl/extractor/thestar.py b/youtube_dl/extractor/thestar.py
index b7e9af2af..c3f118894 100644
--- a/youtube_dl/extractor/thestar.py
+++ b/youtube_dl/extractor/thestar.py
@@ -2,8 +2,6 @@
from __future__ import unicode_literals
from .common import InfoExtractor
-from .brightcove import BrightcoveLegacyIE
-from ..compat import compat_parse_qs
class TheStarIE(InfoExtractor):
@@ -19,6 +17,10 @@ class TheStarIE(InfoExtractor):
'uploader_id': '794267642001',
'timestamp': 1454353482,
'upload_date': '20160201',
+ },
+ 'params': {
+ # m3u8 download
+ 'skip_download': True,
}
}
BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/794267642001/default_default/index.html?videoId=%s'
@@ -26,6 +28,9 @@ class TheStarIE(InfoExtractor):
def _real_extract(self, url):
display_id = self._match_id(url)
webpage = self._download_webpage(url, display_id)
- brightcove_legacy_url = BrightcoveLegacyIE._extract_brightcove_url(webpage)
- brightcove_id = compat_parse_qs(brightcove_legacy_url)['@videoPlayer'][0]
- return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id)
+ brightcove_id = self._search_regex(
+ r'mainartBrightcoveVideoId["\']?\s*:\s*["\']?(\d+)',
+ webpage, 'brightcove id')
+ return self.url_result(
+ self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id,
+ 'BrightcoveNew', brightcove_id)