diff options
author | Remita Amine <remitamine@gmail.com> | 2018-07-26 08:11:06 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2018-07-26 08:11:06 +0100 |
commit | 0c7b4f49eb07bb68918da3dd7ff277565273033f (patch) | |
tree | c0a0682973dc583dd2dabe8091b66d54213d5fe1 | |
parent | ad1bc71a8a448583734b313bc77a2097200ad97b (diff) |
[rai] return non http relinker URL intact(closes #17055)
-rw-r--r-- | youtube_dl/extractor/rai.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/youtube_dl/extractor/rai.py b/youtube_dl/extractor/rai.py index d22311031..f916b2619 100644 --- a/youtube_dl/extractor/rai.py +++ b/youtube_dl/extractor/rai.py @@ -32,6 +32,9 @@ class RaiBaseIE(InfoExtractor): _GEO_BYPASS = False def _extract_relinker_info(self, relinker_url, video_id): + if not re.match(r'https?://', relinker_url): + return {'formats': [{'url': relinker_url}]} + formats = [] geoprotection = None is_live = None @@ -369,6 +372,10 @@ class RaiIE(RaiBaseIE): 'params': { 'skip_download': True, }, + }, { + # Direct MMS URL + 'url': 'http://www.rai.it/dl/RaiTV/programmi/media/ContentItem-b63a4089-ac28-48cf-bca5-9f5b5bc46df5.html', + 'only_matching': True, }] def _extract_from_content_id(self, content_id, url): |