From: Remita Amine Date: Fri, 20 Nov 2020 09:26:55 +0000 (+0100) Subject: [rai] fix protocol relative relinker URLs(closes #22766) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=7bc7fbce239da880f7ab67fc5be55ea82df64e20;p=youtube-dl [rai] fix protocol relative relinker URLs(closes #22766) --- 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)