mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 03:03:01 +00:00
[telecinco] Recognize more urls (closes #5065)
This commit is contained in:
parent
13d8fbef30
commit
c10ea454dc
2 changed files with 8 additions and 5 deletions
|
@ -18,7 +18,7 @@ class MiTeleIE(InfoExtractor):
|
||||||
IE_NAME = 'mitele.es'
|
IE_NAME = 'mitele.es'
|
||||||
_VALID_URL = r'http://www\.mitele\.es/[^/]+/[^/]+/[^/]+/(?P<id>[^/]+)/'
|
_VALID_URL = r'http://www\.mitele\.es/[^/]+/[^/]+/[^/]+/(?P<id>[^/]+)/'
|
||||||
|
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'http://www.mitele.es/programas-tv/diario-de/la-redaccion/programa-144/',
|
'url': 'http://www.mitele.es/programas-tv/diario-de/la-redaccion/programa-144/',
|
||||||
'md5': '6a75fe9d0d3275bead0cb683c616fddb',
|
'md5': '6a75fe9d0d3275bead0cb683c616fddb',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
|
@ -29,7 +29,7 @@ class MiTeleIE(InfoExtractor):
|
||||||
'display_id': 'programa-144',
|
'display_id': 'programa-144',
|
||||||
'duration': 2913,
|
'duration': 2913,
|
||||||
},
|
},
|
||||||
}
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
episode = self._match_id(url)
|
episode = self._match_id(url)
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
|
|
||||||
class TelecincoIE(MiTeleIE):
|
class TelecincoIE(MiTeleIE):
|
||||||
IE_NAME = 'telecinco.es'
|
IE_NAME = 'telecinco.es'
|
||||||
_VALID_URL = r'https?://www\.telecinco\.es/[^/]+/[^/]+/[^/]+/(?P<id>.*?)\.html'
|
_VALID_URL = r'https?://www\.telecinco\.es/[^/]+/[^/]+/(?:[^/]+/)?(?P<id>.*?)\.html'
|
||||||
|
|
||||||
_TEST = {
|
_TESTS = [{
|
||||||
'url': 'http://www.telecinco.es/robinfood/temporada-01/t01xp14/Bacalao-cocochas-pil-pil_0_1876350223.html',
|
'url': 'http://www.telecinco.es/robinfood/temporada-01/t01xp14/Bacalao-cocochas-pil-pil_0_1876350223.html',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'MDSVID20141015_0058',
|
'id': 'MDSVID20141015_0058',
|
||||||
|
@ -16,4 +16,7 @@ class TelecincoIE(MiTeleIE):
|
||||||
'title': 'Con Martín Berasategui, hacer un bacalao al ...',
|
'title': 'Con Martín Berasategui, hacer un bacalao al ...',
|
||||||
'duration': 662,
|
'duration': 662,
|
||||||
},
|
},
|
||||||
}
|
}, {
|
||||||
|
'url': 'http://www.telecinco.es/informativos/nacional/Pablo_Iglesias-Informativos_Telecinco-entrevista-Pedro_Piqueras_2_1945155182.html',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
|
|
Loading…
Reference in a new issue