1
0
Fork 0
mirror of https://codeberg.org/polarisfm/youtube-dl.git synced 2024-12-23 16:22:30 +00:00

[theplatform] Handle protocolless feed URLs (Closes #7532)

This commit is contained in:
Sergey M․ 2015-11-19 22:58:29 +06:00
parent 342609a1b4
commit ee5cd8418e

View 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