aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-02-10 22:39:33 +0100
committerremitamine <remitamine@gmail.com>2016-02-10 22:39:33 +0100
commita1188d0ed06a619f4d0274eca602114648d7f33b (patch)
tree63d915b4c79a353bd3eb1f8393067d64e12551aa
parent47d205a6460a696514f6485a516358513ab880b6 (diff)
downloadyoutube-dl-a1188d0ed06a619f4d0274eca602114648d7f33b.tar.xz
[crackle] add prefix to format ids
-rw-r--r--youtube_dl/extractor/crackle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/crackle.py b/youtube_dl/extractor/crackle.py
index 70f3f14c3..79238cce7 100644
--- a/youtube_dl/extractor/crackle.py
+++ b/youtube_dl/extractor/crackle.py
@@ -57,7 +57,7 @@ class CrackleIE(InfoExtractor):
subtitles = {}
formats = self._extract_m3u8_formats(
'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')
if path:
thumbnail = self._THUMBNAIL_TEMPLATE % path
@@ -65,7 +65,7 @@ class CrackleIE(InfoExtractor):
for mfs_path, mfs_info in self._MEDIA_FILE_SLOTS.items():
formats.append({
'url': http_base_url + mfs_path,
- 'format_id': mfs_path.split('.')[0],
+ 'format_id': 'http-' + mfs_path.split('.')[0],
'width': mfs_info['width'],
'height': mfs_info['height'],
})