[lapresse] new extractor

This commit is contained in:
Vincent Olivier 2016-11-19 09:25:33 -05:00
parent 0aacd2deb1
commit 5ad1d95807
2 changed files with 24 additions and 0 deletions

View File

@ -446,6 +446,7 @@ from .kuwo import (
)
from .la7 import LA7IE
from .laola1tv import Laola1TvIE
from .lapresse import LaPresseIE
from .lci import LCIIE
from .lcp import (
LcpPlayIE,

View File

@ -0,0 +1,23 @@
from __future__ import unicode_literals
import re
from .common import InfoExtractor
from .limelight import LimelightMediaIE
class LaPresseIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?lapresse\.ca/videos/(.*)/(?P<id>[a-z0-9]{32})'
_TEST = {
'url': 'http://www.lapresse.ca/videos/actualites/201610/26/46-1-louisville-ou-la-vie-en-noir-et-blanc.php/c28cee30286f4c53ba4f62459dca4a7b',
'info_dict': {
'id': 'c28cee30286f4c53ba4f62459dca4a7b',
'ext': 'mp4',
'title': 'Louisville ou la vie en noir et blanc'
}
}
def _real_extract(self, url):
id = self._match_id(url)
return self.url_result('limelight:media:%s' % id, ie=LimelightMediaIE.ie_key(), video_id=id)