- videourl_match = re.match(r'^video_urls\]\[(?P<resolution>\d+)p',key)
- if videourl_match:
- resolution = int(videourl_match.group('resolution'))
- formats.append({
- 'resolution': resolution, # 360, 480, ...
- 'ext': determine_ext(val),
- 'url': val
- })