- playlist_data = self._html_search_regex(
- r'<div\s+data-component\s*=\s*"Details"(.+)</div>', webpage, 'playlist data')
- playlist_title = self._search_regex(
- r'"title"\s*:\s*"(.+?)"', playlist_data, 'playlist title')
- playlist_description = clean_html(self._search_regex(
- r'"description"\s*:\s*"(.+?)"', playlist_data, 'playlist description',
- fatal=False)) if extract_description else None
- api_search = self._search_regex(
- r'"filter"\s*:\s*"(.+?)"', playlist_data, 'playlist api request')
- api_data = self._download_json(
- 'https://api-prod.ellentube.com/ellenapi/api/feed/?%s' % api_search,
- display_id)
- return self.playlist_result(
- self._extract_videos_from_json(api_data, display_id),
- display_id, playlist_title, playlist_description)
+ video_id = self._extract_data_config(webpage, display_id)['id']
+ return self.url_result(
+ 'ellentube:%s' % video_id, ie=EllenTubeIE.ie_key(),
+ video_id=video_id)