Skip to content

Commit

Permalink
[ctvnews] relax _VALID_URL regex(closes #11394)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Dec 10, 2016
1 parent 8821a71 commit f0b69fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/ctvnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


class CTVNewsIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?ctvnews\.ca/(?:video\?(?:clip|playlist|bin)Id=|.*?)(?P<id>[0-9.]+)'
_VALID_URL = r'https?://(?:.+?\.)?ctvnews\.ca/(?:video\?(?:clip|playlist|bin)Id=|.*?)(?P<id>[0-9.]+)'
_TESTS = [{
'url': 'http://www.ctvnews.ca/video?clipId=901995',
'md5': '10deb320dc0ccb8d01d34d12fc2ea672',
Expand Down Expand Up @@ -40,6 +40,9 @@ class CTVNewsIE(InfoExtractor):
}, {
'url': 'http://www.ctvnews.ca/canadiens-send-p-k-subban-to-nashville-in-blockbuster-trade-1.2967231',
'only_matching': True,
}, {
'url': 'http://vancouverisland.ctvnews.ca/video?clipId=761241',
'only_matching': True,
}]

def _real_extract(self, url):
Expand Down

0 comments on commit f0b69fa

Please sign in to comment.