]>
Commit | Line | Data |
---|---|---|
d6eb66ed S |
1 | # coding: utf-8 |
2 | from __future__ import unicode_literals | |
3 | ||
d6eb66ed | 4 | from .common import InfoExtractor |
d6eb66ed S |
5 | |
6 | ||
7 | class AftenpostenIE(InfoExtractor): | |
8f4cc224 | 8 | _VALID_URL = r'https?://(?:www\.)?aftenposten\.no/webtv/(?:#!/)?video/(?P<id>\d+)' |
d6eb66ed | 9 | _TEST = { |
8f4cc224 | 10 | 'url': 'http://www.aftenposten.no/webtv/#!/video/21039/trailer-sweatshop-i-can-t-take-any-more', |
d6eb66ed S |
11 | 'md5': 'fd828cd29774a729bf4d4425fe192972', |
12 | 'info_dict': { | |
13 | 'id': '21039', | |
14 | 'ext': 'mov', | |
15 | 'title': 'TRAILER: "Sweatshop" - I can´t take any more', | |
16 | 'description': 'md5:21891f2b0dd7ec2f78d84a50e54f8238', | |
17 | 'timestamp': 1416927969, | |
18 | 'upload_date': '20141125', | |
19 | } | |
20 | } | |
21 | ||
22 | def _real_extract(self, url): | |
cbe44336 | 23 | return self.url_result('xstream:ap:%s' % self._match_id(url), 'Xstream') |