You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
807 B

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