summaryrefslogtreecommitdiffhomepage
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <[email protected]>2020-11-20 10:26:55 +0100
committerRemita Amine <[email protected]>2020-11-20 10:26:55 +0100
commit7bc7fbce239da880f7ab67fc5be55ea82df64e20 (patch)
tree7c8abca56104d41deab0092d1c19040ae24ccda1 /youtube_dl
parenta78e530c14cf7caf9449918285653d8284ef30dc (diff)
downloadyoutube-dl-7bc7fbce239da880f7ab67fc5be55ea82df64e20.tar.gz
youtube-dl-7bc7fbce239da880f7ab67fc5be55ea82df64e20.zip
[rai] fix protocol relative relinker URLs(closes #22766)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/rai.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/rai.py b/youtube_dl/extractor/rai.py
index 06958966f..ecb628f14 100644
--- a/youtube_dl/extractor/rai.py
+++ b/youtube_dl/extractor/rai.py
@@ -424,7 +424,7 @@ class RaiIE(RaiBaseIE):
except ExtractorError:
pass
- relinker_url = self._search_regex(
+ relinker_url = self._proto_relative_url(self._search_regex(
r'''(?x)
(?:
var\s+videoURL|
@@ -436,7 +436,7 @@ class RaiIE(RaiBaseIE):
//mediapolis(?:vod)?\.rai\.it/relinker/relinkerServlet\.htm\?
(?:(?!\1).)*\bcont=(?:(?!\1).)+)\1
''',
- webpage, 'relinker URL', group='url')
+ webpage, 'relinker URL', group='url'))
relinker_info = self._extract_relinker_info(
urljoin(url, relinker_url), video_id)