1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-26 04:02:11 +00:00

[bandcamp] Prepend download URL with scheme when necessary (Closes #7077)

This commit is contained in:
Sergey M․ 2015-10-06 22:58:18 +06:00
parent f2dbc54066
commit f648e682a7

View file

@ -93,8 +93,8 @@ class BandcampIE(InfoExtractor):
final_url_webpage = self._download_webpage(request_url, video_id, 'Requesting download url') final_url_webpage = self._download_webpage(request_url, video_id, 'Requesting download url')
# If we could correctly generate the .rand field the url would be # If we could correctly generate the .rand field the url would be
# in the "download_url" key # in the "download_url" key
final_url = self._search_regex( final_url = self._proto_relative_url(self._search_regex(
r'"retry_url":"(.*?)"', final_url_webpage, 'final video URL') r'"retry_url":"(.+?)"', final_url_webpage, 'final video URL'), 'http:')
return { return {
'id': video_id, 'id': video_id,