# add protocol if missing
for i, e in enumerate(urls):
if e.startswith('//'):
- urls[i] = 'https:%s' % e
+ urls[i] = f'https:{e}'
# clean iframes urls
for i, e in enumerate(urls):
urls[i] = urljoin(base_url(e), url_basename(e))
'abr': abr,
'tbr': abr,
'acodec': ext,
- 'vcodec': 'none'
+ 'vcodec': 'none',
})
else:
mobj = re.match(r'^video-rrtv-(\d+)(?:-(\d+))?$', n)
duration = int_or_none(v)
self._clean_formats(formats)
- self._sort_formats(formats)
return {
'id': video_id,