浏览代码

[cnn] Fix for urls ending in '.cnn-ap' (fixes #3985)

Jaime Marquínez Ferrándiz 11 年之前
父节点
当前提交
cc98a3f096
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/cnn.py

+ 1 - 1
youtube_dl/extractor/cnn.py

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