]> Raphaël G. Git Repositories - youtubedl/blob - youtube_dl/extractor/aftenposten.py
Update changelog.
[youtubedl] / youtube_dl / extractor / aftenposten.py
1 # coding: utf-8
2 from __future__ import unicode_literals
3
4 from .common import InfoExtractor
5
6
7 class AftenpostenIE(InfoExtractor):
8 _VALID_URL = r'https?://(?:www\.)?aftenposten\.no/webtv/(?:#!/)?video/(?P<id>\d+)'
9 _TEST = {
10 'url': 'http://www.aftenposten.no/webtv/#!/video/21039/trailer-sweatshop-i-can-t-take-any-more',
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):
23 return self.url_result('xstream:ap:%s' % self._match_id(url), 'Xstream')