From: Jaime Marquínez Ferrándiz Date: Sun, 19 Oct 2014 13:14:37 +0000 (+0200) Subject: [cnn] Fix for urls ending in '.cnn-ap' (fixes #3985) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=cc98a3f09651423f4405933265c6dcf2ae51011f;p=youtube-dl [cnn] Fix for urls ending in '.cnn-ap' (fixes #3985) --- diff --git a/youtube_dl/extractor/cnn.py b/youtube_dl/extractor/cnn.py index dae40c136..78877b1cf 100644 --- a/youtube_dl/extractor/cnn.py +++ b/youtube_dl/extractor/cnn.py @@ -12,7 +12,7 @@ from ..utils import ( class CNNIE(InfoExtractor): _VALID_URL = r'''(?x)https?://((edition|www)\.)?cnn\.com/video/(data/.+?|\?)/ - (?P.+?/(?P[^/]+?)(?:\.cnn|(?=&)))''' + (?P<path>.+?/(?P<title>[^/]+?)(?:\.cnn(-ap)?|(?=&)))''' _TESTS = [{ 'url': 'http://edition.cnn.com/video/?/video/sports/2013/06/09/nadal-1-on-1.cnn',