[funnyordie] Handle protocol-relative URLs (fixes #6490)
authorngld <ngld@tproxy.de>
Wed, 12 Aug 2015 14:01:47 +0000 (16:01 +0200)
committerngld <ngld@tproxy.de>
Wed, 12 Aug 2015 14:01:47 +0000 (16:01 +0200)
youtube_dl/extractor/funnyordie.py

index dd87257c465983dcda30a6faf5dbd7bc0950560c..f5f13689c0a8310d0e241f0cd24617d90799c701 100644 (file)
@@ -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,
                 })