summary refs log tree commit diff
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2016-05-20 18:39:54 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2016-05-20 18:39:54 +0800
commit043dc9d36fea85a964bad3ec13f77d32c462115b (patch)
tree4a405e243ea446c657240b2efa6f84daa033b180
parent52f7c75cff3d7f7923deda469f9d2a551742c193 (diff)
downloadyoutube-dl-043dc9d36fea85a964bad3ec13f77d32c462115b.tar.gz
youtube-dl-043dc9d36fea85a964bad3ec13f77d32c462115b.tar.xz
youtube-dl-043dc9d36fea85a964bad3ec13f77d32c462115b.zip
[cbc] Fix for old-styled URLs
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.
-rw-r--r--youtube_dl/extractor/cbc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cbc.py b/youtube_dl/extractor/cbc.py
index 581928f7d..daf237ca8 100644
--- a/youtube_dl/extractor/cbc.py
+++ b/youtube_dl/extractor/cbc.py
@@ -11,7 +11,7 @@ from ..utils import (
 
 
 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',