0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-23 02:25:11 +00:00

Merge pull request #6539 from ngld/fix-funnyordie

[funnyordie] Handle protocol-relative URLs (fixes #6490)
This commit is contained in:
Sergey M. 2015-08-12 23:23:35 +06:00
commit 479bf783d2

View file

@ -53,7 +53,7 @@ def _real_extract(self, url):
for bitrate in bitrates:
for link in links:
formats.append({
'url': '%s%d.%s' % (link[0], bitrate, link[1]),
'url': self._proto_relative_url('%s%d.%s' % (link[0], bitrate, link[1])),
'format_id': '%s-%d' % (link[1], bitrate),
'vbr': bitrate,
})