]>
Commit | Line | Data |
---|---|---|
5aaca50d JMF |
1 | from __future__ import unicode_literals |
2 | ||
2c64df03 PH |
3 | from .common import InfoExtractor |
4 | ||
5 | ||
6 | class KeekIE(InfoExtractor): | |
e13b9e78 | 7 | _VALID_URL = r'https?://(?:www\.)?keek\.com/keek/(?P<id>\w+)' |
5aaca50d | 8 | IE_NAME = 'keek' |
6f5ac90c | 9 | _TEST = { |
e13b9e78 | 10 | 'url': 'https://www.keek.com/keek/NODfbab', |
11 | 'md5': '9b0636f8c0f7614afa4ea5e4c6e57e83', | |
5aaca50d | 12 | 'info_dict': { |
7129bed5 PH |
13 | 'id': 'NODfbab', |
14 | 'ext': 'mp4', | |
e13b9e78 | 15 | 'title': 'test chars: "\'/\\ä<>This is a test video for youtube-dl.For more information, contact phihag@phihag.de . - Video - Videos on Keek', |
5aaca50d | 16 | }, |
6f5ac90c | 17 | } |
2c64df03 PH |
18 | |
19 | def _real_extract(self, url): | |
7129bed5 | 20 | video_id = self._match_id(url) |
2c64df03 | 21 | |
2c64df03 PH |
22 | webpage = self._download_webpage(url, video_id) |
23 | ||
5aaca50d JMF |
24 | return { |
25 | 'id': video_id, | |
e13b9e78 | 26 | 'url': self._og_search_video_url(webpage), |
5aaca50d JMF |
27 | 'ext': 'mp4', |
28 | 'title': self._og_search_title(webpage), | |
e13b9e78 | 29 | 'thumbnail': self._og_search_thumbnail(webpage), |
2c64df03 | 30 | } |