1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +00:00

[crackle] add prefix to format ids

This commit is contained in:
remitamine 2016-02-10 22:39:33 +01:00
parent 47d205a646
commit a1188d0ed0

View file

@ -57,7 +57,7 @@ class CrackleIE(InfoExtractor):
subtitles = {} subtitles = {}
formats = self._extract_m3u8_formats( formats = self._extract_m3u8_formats(
'http://content.uplynk.com/ext/%s/%s.m3u8' % (self._UPLYNK_OWNER_ID, video_id), 'http://content.uplynk.com/ext/%s/%s.m3u8' % (self._UPLYNK_OWNER_ID, video_id),
video_id, 'mp4', fatal=None) video_id, 'mp4', m3u8_id='hls', fatal=None)
path = item.attrib.get('p') path = item.attrib.get('p')
if path: if path:
thumbnail = self._THUMBNAIL_TEMPLATE % path thumbnail = self._THUMBNAIL_TEMPLATE % path
@ -65,7 +65,7 @@ class CrackleIE(InfoExtractor):
for mfs_path, mfs_info in self._MEDIA_FILE_SLOTS.items(): for mfs_path, mfs_info in self._MEDIA_FILE_SLOTS.items():
formats.append({ formats.append({
'url': http_base_url + mfs_path, 'url': http_base_url + mfs_path,
'format_id': mfs_path.split('.')[0], 'format_id': 'http-' + mfs_path.split('.')[0],
'width': mfs_info['width'], 'width': mfs_info['width'],
'height': mfs_info['height'], 'height': mfs_info['height'],
}) })