1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-23 10:32:52 +08:00
youtube-dl/youtube_dl/extractor/d8.py

26 lines
768 B
Python
Raw Normal View History

2013-11-13 06:32:03 +08:00
# encoding: utf-8
2014-01-22 10:10:31 +08:00
from __future__ import unicode_literals
2014-01-22 10:09:21 +08:00
from .canalplus import CanalplusIE
2013-11-13 06:32:03 +08:00
class D8IE(CanalplusIE):
2013-11-13 06:32:03 +08: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 10:09:21 +08:00
IE_NAME = 'd8.tv'
2013-11-13 06:32:03 +08:00
_TEST = {
2014-01-22 10:09:21 +08: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-13 06:32:03 +08:00
},
2014-01-22 10:09:21 +08:00
'params': {
# rtmp
2014-01-22 10:09:21 +08:00
'skip_download': True,
2013-11-13 06:32:03 +08:00
},
2014-01-22 10:09:21 +08:00
'skip': 'videos get deleted after a while',
2013-11-13 06:32:03 +08:00
}