22 lines
766 B
Python
22 lines
766 B
Python
from __future__ import unicode_literals
|
|
|
|
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):
|
|
media_id = self._match_id(url)
|
|
|
|
return self.url_result('limelight:media:%s' % media_id, ie=LimelightMediaIE.ie_key(), video_id=media_id)
|