From: ngld Date: Wed, 12 Aug 2015 14:01:47 +0000 (+0200) Subject: [funnyordie] Handle protocol-relative URLs (fixes #6490) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=1df3186e0e2c49993f4230ec77a9de351177b271;p=youtube-dl [funnyordie] Handle protocol-relative URLs (fixes #6490) --- diff --git a/youtube_dl/extractor/funnyordie.py b/youtube_dl/extractor/funnyordie.py index dd87257c4..f5f13689c 100644 --- a/youtube_dl/extractor/funnyordie.py +++ b/youtube_dl/extractor/funnyordie.py @@ -53,7 +53,7 @@ class FunnyOrDieIE(InfoExtractor): 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, })