]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[cnn] Relax _VALID_URL again (fixes #5737)
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 23 May 2015 18:04:02 +0000 (02:04 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 23 May 2015 18:04:02 +0000 (02:04 +0800)
The problem is the same as test:CNN_1, so I didn't add the test case

youtube_dl/extractor/cnn.py

index 5efc5f4fe556a4424542b441a83f2d6dbd5bc8e7..3b1bd4033fd1c01986c83ab44cc1cebaa1b19e5b 100644 (file)
@@ -12,7 +12,7 @@ from ..utils import (
 
 class CNNIE(InfoExtractor):
     _VALID_URL = r'''(?x)https?://(?:(?:edition|www)\.)?cnn\.com/video/(?:data/.+?|\?)/
-        (?P<path>.+?/(?P<title>[^/]+?)(?:\.(?:[a-z]{3,5})(?:-ap)?|(?=&)))'''
+        (?P<path>.+?/(?P<title>[^/]+?)(?:\.(?:[a-z\-]+)|(?=&)))'''
 
     _TESTS = [{
         'url': 'http://edition.cnn.com/video/?/video/sports/2013/06/09/nadal-1-on-1.cnn',