]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[theplatform] Handle protocolless feed URLs (Closes #7532)
authorSergey M․ <dstftw@gmail.com>
Thu, 19 Nov 2015 16:58:29 +0000 (22:58 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 19 Nov 2015 16:58:29 +0000 (22:58 +0600)
youtube_dl/extractor/theplatform.py

index 43315e75db76311d09983b98f2f52cedd0b5bb20..d52f9ae4bbf86833524bfc68751f77e9357716e5 100644 (file)
@@ -187,7 +187,8 @@ class ThePlatformIE(ThePlatformBaseIE):
             # Seems there's no pattern for the interested script filename, so
             # I try one by one
             for script in reversed(scripts):
-                feed_script = self._download_webpage(script, video_id, 'Downloading feed script')
+                feed_script = self._download_webpage(
+                    self._proto_relative_url(script, 'http:'), video_id, 'Downloading feed script')
                 feed_id = self._search_regex(r'defaultFeedId\s*:\s*"([^"]+)"', feed_script, 'default feed id', default=None)
                 if feed_id is not None:
                     break