about summary refs log tree commit diff
path: root/youtube_dl/extractor/people.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-04-20 03:37:23 +0600
committerSergey M․ <dstftw@gmail.com>2016-04-20 03:37:23 +0600
commitf77970765adb0ffe837706ef8eb041ea448c34b3 (patch)
treeacba4e21bbf0cf1e0144272726a79ed853fbbae4 /youtube_dl/extractor/people.py
parent81215d56524e2b4d26898e5cc3ecd92a856df344 (diff)
downloadyoutube-dl-f77970765adb0ffe837706ef8eb041ea448c34b3.tar.gz
youtube-dl-f77970765adb0ffe837706ef8eb041ea448c34b3.tar.xz
youtube-dl-f77970765adb0ffe837706ef8eb041ea448c34b3.zip
[people] Add extractor
Diffstat (limited to 'youtube_dl/extractor/people.py')
-rw-r--r--youtube_dl/extractor/people.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/youtube_dl/extractor/people.py b/youtube_dl/extractor/people.py
new file mode 100644
index 000000000..f25459045
--- /dev/null
+++ b/youtube_dl/extractor/people.py
@@ -0,0 +1,33 @@
+# coding: utf-8
+from __future__ import unicode_literals
+
+from .common import InfoExtractor
+
+
+class PeopleIE(InfoExtractor):
+    _VALID_URL = r'https?://(?:www\.)?people\.com/people/videos/0,,(?P<id>\d+),00\.html'
+
+    _TEST = {
+        'url': 'http://www.people.com/people/videos/0,,20995451,00.html',
+        'info_dict': {
+            'id': 'ref:20995451',
+            'ext': 'mp4',
+            'title': 'Astronaut Love Triangle Victim Speaks Out: “The Crime in 2007 Hasn’t Defined Us”',
+            'description': 'Colleen Shipman speaks to PEOPLE for the first time about life after the attack',
+            'thumbnail': 're:^https?://.*\.jpg',
+            'duration': 246.318,
+            'timestamp': 1458720585,
+            'upload_date': '20160323',
+            'uploader_id': '416418724',
+        },
+        'params': {
+            # m3u8 download
+            'skip_download': True,
+        },
+        'add_ie': ['BrightcoveNew'],
+    }
+
+    def _real_extract(self, url):
+        return self.url_result(
+            'http://players.brightcove.net/416418724/default_default/index.html?videoId=ref:%s'
+            % self._match_id(url), 'BrightcoveNew')