[cnn] Use edition.cnn.com for getting the information (fixes #4757)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 21 Jan 2015 09:31:57 +0000 (10:31 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 21 Jan 2015 09:31:57 +0000 (10:31 +0100)
Some videos (like http://edition.cnn.com/videos/us/2015/01/20/orig-yellowstone-oil-spill.cnn) will fail if we use cnn.com.

youtube_dl/extractor/cnn.py

index 4bb58f25ea8e668a045123e3d732e60ba1324889..90ea074387ef6afe4aaa87a41c13ec6cf5a1aa7b 100644 (file)
@@ -51,7 +51,7 @@ class CNNIE(InfoExtractor):
         mobj = re.match(self._VALID_URL, url)
         path = mobj.group('path')
         page_title = mobj.group('title')
-        info_url = 'http://cnn.com/video/data/3.0/%s/index.xml' % path
+        info_url = 'http://edition.cnn.com/video/data/3.0/%s/index.xml' % path
         info = self._download_xml(info_url, page_title)
 
         formats = []