youtube-dl/youtube_dl/extractor/d8.py

26 lines
768 B
Python
Raw Normal View History

2013-11-12 22:32:03 +00:00
# encoding: utf-8
2014-01-22 02:10:31 +00:00
from __future__ import unicode_literals
2014-01-22 02:09:21 +00:00
from .canalplus import CanalplusIE
2013-11-12 22:32:03 +00:00
class D8IE(CanalplusIE):
2013-11-12 22:32:03 +00:00
_VALID_URL = r'https?://www\.d8\.tv/.*?/(?P<path>.*)'
_VIDEO_INFO_TEMPLATE = 'http://service.canal-plus.com/video/rest/getVideosLiees/d8/%s'
2014-01-22 02:09:21 +00:00
IE_NAME = 'd8.tv'
2013-11-12 22:32:03 +00:00
_TEST = {
2014-01-22 02:09:21 +00:00
'url': 'http://www.d8.tv/d8-docs-mags/pid6589-d8-campagne-intime.html',
'file': '966289.flv',
'info_dict': {
'title': 'Campagne intime - Documentaire exceptionnel',
'description': 'md5:d2643b799fb190846ae09c61e59a859f',
'upload_date': '20131108',
2013-11-12 22:32:03 +00:00
},
2014-01-22 02:09:21 +00:00
'params': {
# rtmp
2014-01-22 02:09:21 +00:00
'skip_download': True,
2013-11-12 22:32:03 +00:00
},
2014-01-22 02:09:21 +00:00
'skip': 'videos get deleted after a while',
2013-11-12 22:32:03 +00:00
}