1
0
mirror of https://github.com/l1ving/youtube-dl synced 2020-11-18 19:53:54 -08:00

[lequipe] Add new extractor

This commit is contained in:
Lucas 2019-08-19 15:26:55 +02:00
parent 3bce4ff7d9
commit 816e2968a7
2 changed files with 30 additions and 0 deletions

View File

@ -561,6 +561,7 @@ from .leeco import (
from .lego import LEGOIE from .lego import LEGOIE
from .lemonde import LemondeIE from .lemonde import LemondeIE
from .lenta import LentaIE from .lenta import LentaIE
from .lequipe import LequipeIE
from .libraryofcongress import LibraryOfCongressIE from .libraryofcongress import LibraryOfCongressIE
from .libsyn import LibsynIE from .libsyn import LibsynIE
from .lifenews import ( from .lifenews import (

29
youtube_dl/extractor/lequipe.py Executable file
View File

@ -0,0 +1,29 @@
# coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
class LequipeIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?lequipe\.fr/video/(?P<id>.*)'
_TEST = {
'url': 'https://www.lequipe.fr/video/x791mem',
'md5': '2e76bcda7c90c4c44ff4a2f2be1e711c',
'info_dict': {
'id': 'x791mem',
'title': '10e étape du Giro, 2e partie - Cyclisme - Replay',
'description': 'VIDÉO CYCLISME - Retrouvez le replay de la deuxième partie de la 10e étape du Giro 2019 entre Ravenne et Modène.',
'ext': 'mp4',
'timestamp': 1558539198,
'upload_date': '20190522',
'uploader_id': 'x1h9q8j',
'uploader': 'la chaine L\'Équipe',
},
}
def _real_extract(self, url):
return {
'_type': "url",
'url': "https://www.dailymotion.com/video/" + self._match_id(url),
'ie_key': 'Dailymotion',
}