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.

25 lines
768 B

11 years ago
  1. # encoding: utf-8
  2. from __future__ import unicode_literals
  3. from .canalplus import CanalplusIE
  4. class D8IE(CanalplusIE):
  5. _VALID_URL = r'https?://www\.d8\.tv/.*?/(?P<path>.*)'
  6. _VIDEO_INFO_TEMPLATE = 'http://service.canal-plus.com/video/rest/getVideosLiees/d8/%s'
  7. IE_NAME = 'd8.tv'
  8. _TEST = {
  9. 'url': 'http://www.d8.tv/d8-docs-mags/pid6589-d8-campagne-intime.html',
  10. 'file': '966289.flv',
  11. 'info_dict': {
  12. 'title': 'Campagne intime - Documentaire exceptionnel',
  13. 'description': 'md5:d2643b799fb190846ae09c61e59a859f',
  14. 'upload_date': '20131108',
  15. },
  16. 'params': {
  17. # rtmp
  18. 'skip_download': True,
  19. },
  20. 'skip': 'videos get deleted after a while',
  21. }