aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/cnn.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2014-12-30 01:50:28 +0600
committerSergey M․ <[email protected]>2014-12-30 01:50:28 +0600
commit429ddfd38dfb53aa05f0e2a77aeeb4ac5d20a17d (patch)
treef1a32f28adc1450015deb5d323f09e8ec6eb9970 /youtube_dl/extractor/cnn.py
parent479514d01508907f99964e846d28bd93ba279278 (diff)
downloadyoutube-dl-429ddfd38dfb53aa05f0e2a77aeeb4ac5d20a17d.tar.gz
youtube-dl-429ddfd38dfb53aa05f0e2a77aeeb4ac5d20a17d.zip
[cnn] Add support for hln URL format (Closes #4595)
Diffstat (limited to 'youtube_dl/extractor/cnn.py')
-rw-r--r--youtube_dl/extractor/cnn.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/youtube_dl/extractor/cnn.py b/youtube_dl/extractor/cnn.py
index 1bff005d6..93e8d0de3 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<path>.+?/(?P<title>[^/]+?)(?:\.cnn(?:-ap)?|(?=&)))'''
+ (?P<path>.+?/(?P<title>[^/]+?)(?:\.(?:cnn|hln)(?:-ap)?|(?=&)))'''
_TESTS = [{
'url': 'http://edition.cnn.com/video/?/video/sports/2013/06/09/nadal-1-on-1.cnn',
@@ -35,6 +35,16 @@ class CNNIE(InfoExtractor):
"description": "A Georgia Tech student welcomes the incoming freshmen with an epic speech backed by music from \"2001: A Space Odyssey.\"",
"upload_date": "20130821",
}
+ }, {
+ 'url': 'http://www.cnn.com/video/data/2.0/video/living/2014/12/22/growing-america-nashville-salemtown-board-episode-1.hln.html',
+ 'md5': 'f14d02ebd264df951feb2400e2c25a1b',
+ 'info_dict': {
+ 'id': 'living/2014/12/22/growing-america-nashville-salemtown-board-episode-1.hln',
+ 'ext': 'mp4',
+ 'title': 'Nashville Ep. 1: Hand crafted skateboards',
+ 'description': 'md5:e7223a503315c9f150acac52e76de086',
+ 'upload_date': '20141222',
+ }
}]
def _real_extract(self, url):