]> git.bitcoin.ninja Git - youtube-dl/blob - youtube_dl/extractor/d8.py
Merge branch 'ustream-embed-recorded2' of https://github.com/anovicecodemonkey/youtub...
[youtube-dl] / youtube_dl / extractor / d8.py
1 # encoding: utf-8
2 from __future__ import unicode_literals
3
4 from .canalplus import CanalplusIE
5
6
7 class D8IE(CanalplusIE):
8     _VALID_URL = r'https?://www\.d8\.tv/.*?/(?P<path>.*)'
9     _VIDEO_INFO_TEMPLATE = 'http://service.canal-plus.com/video/rest/getVideosLiees/d8/%s'
10     IE_NAME = 'd8.tv'
11
12     _TEST = {
13         'url': 'http://www.d8.tv/d8-docs-mags/pid6589-d8-campagne-intime.html',
14         'file': '966289.flv',
15         'info_dict': {
16             'title': 'Campagne intime - Documentaire exceptionnel',
17             'description': 'md5:d2643b799fb190846ae09c61e59a859f',
18             'upload_date': '20131108',
19         },
20         'params': {
21             # rtmp
22             'skip_download': True,
23         },
24         'skip': 'videos get deleted after a while',
25     }