- embed_code = self._search_regex(
- r'''nw_vod_ooplayer\('movie-area', '([^']+)'\);''',
- webpage,
- 'ooyala embed code')
+ data = self._download_json(self._API_URL, video_id)
+
+ try:
+ episode = next(
+ e for e in data['data']['episodes']
+ if e.get('url') and video_id in e['url'])
+ except StopIteration:
+ raise ExtractorError('Unable to find episode')
+
+ embed_code = episode['vod_id']
+
+ title = episode.get('sub_title_clean') or episode['sub_title']
+ description = episode.get('description_clean') or episode.get('description')
+ series = episode.get('title_clean') or episode.get('title')