projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a78e530
)
[rai] fix protocol relative relinker URLs(closes #22766)
author
Remita Amine
<remitamine@gmail.com>
Fri, 20 Nov 2020 09:26:55 +0000
(10:26 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Fri, 20 Nov 2020 09:26:55 +0000
(10:26 +0100)
youtube_dl/extractor/rai.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/rai.py
b/youtube_dl/extractor/rai.py
index 06958966fe81d3739fac2457a8edf1795ba11641..ecb628f1494e8e18e2a7da21cf14d068f60c3425 100644
(file)
--- 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)