- info = post
- break
- if info is None:
- raise ExtractorError('Unable to find info for %s'%display_id)
-
- title = info['title']
- description = info['excerpt']
- upload_date = info['date'][:10].replace('-', '')
- video_id = info['fov_videoid']
- creator = ','.join([a['display_name'] for a in info['authors']])
- thumbnail = self._og_search_property('image', webpage)
- content_id = thumbnail.split('/')[-1].split('.')[0]
- content_url = 'https://content.jwplatform.com/jw6/{content_id}.xml'.format(content_id=content_id)
- content = self._download_xml(content_url, video_id)
-
- formats = []
- for source in content.findall('.//{http://rss.jwpcdn.com/}source'):
- if source.attrib['file'].endswith('.m3u8'):
- formats.extend(self._extract_m3u8_formats(
- source.attrib['file'], video_id, 'mp4', preference=1, m3u8_id='hls'))
-
- return {
- 'creator': creator,
- 'description': description,
- 'display_id': display_id,
- 'formats': formats,
- 'id': video_id,
- 'id': video_id,
- 'thumbnail': thumbnail,
- 'title': title,
- 'upload_date': upload_date,
- }
+ return {
+ '_type': 'url_transparent',
+ 'url': 'jwplatform:%s' % post['fov_videoid'],
+ 'id': compat_str(post['ID']),
+ 'display_id': display_id,
+ 'title': post['title'],
+ 'description': post.get('excerpt'),
+ 'timestamp': parse_iso8601(post.get('date')),
+ 'comment_count': int_or_none(post.get('comments_number')),
+ }
+ raise ExtractorError('Unable to find the current post')