- url, video_id, headers={'Accept': 'application/json'})
- service_name = video_data['video_service_name']
- if service_name == 'YOUTUBE':
- yt_video_id = video_data['video_service_id']
- return self.url_result(yt_video_id, 'Youtube', video_id=yt_video_id)
+ 'https://ben.slideslive.com/player/' + video_id, video_id)
+ service_name = video_data['video_service_name'].lower()
+ assert service_name in ('url', 'vimeo', 'youtube')
+ service_id = video_data['video_service_id']
+ info = {
+ 'id': video_id,
+ 'thumbnail': video_data.get('thumbnail'),
+ 'url': service_id,
+ }
+ if service_name == 'url':
+ info['title'] = video_data['title']