Skip to content

Commit

Permalink
[rai] Relax _VALID_URL (closes #19232)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and meunierd committed Dec 27, 2019
1 parent 07ac6ca commit 94a1eed
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/rai.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ def _real_extract(self, url):


class RaiIE(RaiBaseIE):
_VALID_URL = r'https?://[^/]+\.(?:rai\.(?:it|tv)|rainews\.it)/dl/.+?-(?P<id>%s)(?:-.+?)?\.html' % RaiBaseIE._UUID_RE
_VALID_URL = r'https?://[^/]+\.(?:rai\.(?:it|tv)|rainews\.it)/.+?-(?P<id>%s)(?:-.+?)?\.html' % RaiBaseIE._UUID_RE
_TESTS = [{
# var uniquename = "ContentItem-..."
# data-id="ContentItem-..."
Expand Down Expand Up @@ -375,6 +375,9 @@ class RaiIE(RaiBaseIE):
# Direct MMS URL
'url': 'http://www.rai.it/dl/RaiTV/programmi/media/ContentItem-b63a4089-ac28-48cf-bca5-9f5b5bc46df5.html',
'only_matching': True,
}, {
'url': 'https://www.rainews.it/tgr/marche/notiziari/video/2019/02/ContentItem-6ba945a2-889c-4a80-bdeb-8489c70a8db9.html',
'only_matching': True,
}]

def _extract_from_content_id(self, content_id, url):
Expand Down

0 comments on commit 94a1eed

Please sign in to comment.