mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-22 10:11:52 +00:00
[thestar] Fix extraction (Closes #10465)
This commit is contained in:
parent
af95ee94b4
commit
8276d3b87a
1 changed files with 6 additions and 5 deletions
|
@ -2,8 +2,6 @@
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from .brightcove import BrightcoveLegacyIE
|
|
||||||
from ..compat import compat_parse_qs
|
|
||||||
|
|
||||||
|
|
||||||
class TheStarIE(InfoExtractor):
|
class TheStarIE(InfoExtractor):
|
||||||
|
@ -30,6 +28,9 @@ class TheStarIE(InfoExtractor):
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
display_id = self._match_id(url)
|
display_id = self._match_id(url)
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
brightcove_legacy_url = BrightcoveLegacyIE._extract_brightcove_url(webpage)
|
brightcove_id = self._search_regex(
|
||||||
brightcove_id = compat_parse_qs(brightcove_legacy_url)['@videoPlayer'][0]
|
r'mainartBrightcoveVideoId["\']?\s*:\s*["\']?(\d+)',
|
||||||
return self.url_result(self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id, 'BrightcoveNew', brightcove_id)
|
webpage, 'brightcove id')
|
||||||
|
return self.url_result(
|
||||||
|
self.BRIGHTCOVE_URL_TEMPLATE % brightcove_id,
|
||||||
|
'BrightcoveNew', brightcove_id)
|
||||||
|
|
Loading…
Reference in a new issue