Skip to content

Commit

Permalink
[cbc] Fix for old-styled URLs
Browse files Browse the repository at this point in the history
The URL http://www.cbc.ca/player/News/ID/2672225049/ (#6342) redirects
to http://www.cbc.ca/player/play/2672224672, while youtube-dl wasn't
able to handle it correctly.
  • Loading branch information
Yen Chi Hsuan authored and TRox1972 committed May 20, 2016
1 parent 8fc5295 commit ccb6f8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/cbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class CBCIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?cbc\.ca/(?:[^/]+/)+(?P<id>[^/?#]+)'
_VALID_URL = r'https?://(?:www\.)?cbc\.ca/(?!player/)(?:[^/]+/)+(?P<id>[^/?#]+)'
_TESTS = [{
# with mediaId
'url': 'http://www.cbc.ca/22minutes/videos/clips-season-23/don-cherry-play-offs',
Expand Down

0 comments on commit ccb6f8c

Please sign in to comment.