- thumb_rel_url = self._html_search_regex(
- r'''<a class="movie-cover-wrapper".*?><img src=["'](.*?)["'].*?/></a>''', webpage, "thumbnail url")
- thumb_abs_url = re.sub('\.\.', 'http://www.einthusan.com', thumb_rel_url)
+ ej_links = self._decrypt(video_data['EJLinks'], video_id)
+
+ formats = []
+
+ m3u8_url = ej_links.get('HLSLink')
+ if m3u8_url:
+ formats.extend(self._extract_m3u8_formats(
+ m3u8_url, video_id, ext='mp4', entry_protocol='m3u8_native'))
+
+ mp4_url = ej_links.get('MP4Link')
+ if mp4_url:
+ formats.append({
+ 'url': mp4_url,
+ })
+
+ self._sort_formats(formats)
+
+ description = get_elements_by_class('synopsis', webpage)[0]
+ thumbnail = self._html_search_regex(
+ r'''<img[^>]+src=(["'])(?P<url>(?!\1).+?/moviecovers/(?!\1).+?)\1''',
+ webpage, 'thumbnail url', fatal=False, group='url')
+ if thumbnail is not None:
+ thumbnail = compat_urlparse.urljoin(url, thumbnail)