- media_details = self._download_json(
- 'https://web-api-us.crackle.com/Service.svc/details/media/%s/TW?format=json' % video_id,
- video_id, fatal=False)
- thumbnails = []
- if media_details:
- for key, value in media_details.items():
- mobj = re.match('^Thumbnail_(\d+)x(\d+)$', key)
- if mobj:
- width, height = list(map(int, mobj.groups()))
- thumbnails.append({
- 'id': '%dp' % height,
- 'url': value,
- 'width': width,
- 'height': height,
- })
-