2015-02-06 14:46:54 -05:00
|
|
|
|
# coding: utf-8
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
|
|
from .common import InfoExtractor
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AftenpostenIE(InfoExtractor):
|
2015-03-15 00:08:14 -04:00
|
|
|
|
_VALID_URL = r'https?://(?:www\.)?aftenposten\.no/webtv/(?:#!/)?video/(?P<id>\d+)'
|
2015-02-06 14:46:54 -05:00
|
|
|
|
_TEST = {
|
2015-03-15 00:08:14 -04:00
|
|
|
|
'url': 'http://www.aftenposten.no/webtv/#!/video/21039/trailer-sweatshop-i-can-t-take-any-more',
|
2015-02-06 14:46:54 -05:00
|
|
|
|
'md5': 'fd828cd29774a729bf4d4425fe192972',
|
|
|
|
|
'info_dict': {
|
|
|
|
|
'id': '21039',
|
|
|
|
|
'ext': 'mov',
|
|
|
|
|
'title': 'TRAILER: "Sweatshop" - I can´t take any more',
|
|
|
|
|
'description': 'md5:21891f2b0dd7ec2f78d84a50e54f8238',
|
|
|
|
|
'timestamp': 1416927969,
|
|
|
|
|
'upload_date': '20141125',
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
def _real_extract(self, url):
|
2015-05-08 12:52:20 -04:00
|
|
|
|
return self.url_result('xstream:ap:%s' % self._match_id(url), 'Xstream')
|