[canal+] Add support for d17.tv

This commit is contained in:
Sergey M․ 2016-06-07 22:32:08 +07:00
parent 3d9b3605a3
commit 57b6e9652e
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -23,6 +23,7 @@ class CanalplusIE(InfoExtractor):
(?:(?:www|m)\.)?canalplus\.fr| (?:(?:www|m)\.)?canalplus\.fr|
(?:www\.)?piwiplus\.fr| (?:www\.)?piwiplus\.fr|
(?:www\.)?d8\.tv| (?:www\.)?d8\.tv|
(?:www\.)?d17\.tv|
(?:www\.)?itele\.fr (?:www\.)?itele\.fr
)/(?:(?:[^/]+/)*(?P<display_id>[^/?#&]+))?(?:\?.*\bvid=(?P<vid>\d+))?| )/(?:(?:[^/]+/)*(?P<display_id>[^/?#&]+))?(?:\?.*\bvid=(?P<vid>\d+))?|
player\.canalplus\.fr/#/(?P<id>\d+) player\.canalplus\.fr/#/(?P<id>\d+)
@ -34,6 +35,7 @@ class CanalplusIE(InfoExtractor):
'canalplus': 'cplus', 'canalplus': 'cplus',
'piwiplus': 'teletoon', 'piwiplus': 'teletoon',
'd8': 'd8', 'd8': 'd8',
'd17': 'd17',
'itele': 'itele', 'itele': 'itele',
} }
@ -84,6 +86,9 @@ class CanalplusIE(InfoExtractor):
}, { }, {
'url': 'http://m.canalplus.fr/?vid=1398231', 'url': 'http://m.canalplus.fr/?vid=1398231',
'only_matching': True, 'only_matching': True,
}, {
'url': 'http://www.d17.tv/emissions/pid8303-lolywood.html?vid=1397061',
'only_matching': True,
}] }]
def _real_extract(self, url): def _real_extract(self, url):