aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-11-19 22:58:29 +0600
committerSergey M․ <dstftw@gmail.com>2015-11-19 22:58:29 +0600
commitee5cd8418e7d6503bfa33ef44e2eb863a55a8c8c (patch)
treec2bef230fb82ef0bb5daf74e1df3001e3cf90aca /youtube_dl
parent342609a1b452c8b8a02e86c3de2ec2a55b6e809b (diff)
[theplatform] Handle protocolless feed URLs (Closes #7532)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/theplatform.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py
index 43315e75d..d52f9ae4b 100644
--- a/youtube_dl/extractor/theplatform.py
+++ b/youtube_dl/extractor/theplatform.py
@@ -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