- rtmp_info_url = info['cdn'] + 'CLIP'
- rtmp_info = self._download_json(rtmp_info_url, video_id)
- file_url = rtmp_info['serverurl'] + rtmp_info['fileurl']
+
+ cdn_data = self._download_json(
+ info['cdn'], video_id, 'Downloading vod cdn JSON')['data'][0]
+ m3u8_url = cdn_data['url']
+ token = cdn_data.get('token')
+ if token and token != '-':
+ m3u8_url += '?' + token
+ formats = self._extract_wowza_formats(
+ m3u8_url, video_id, skip_protocols=['rtmp', 'rtsp', 'f4m'])
+ self._sort_formats(formats)
+