mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-20 18:30:09 +09:00
[rtve]: Add support for audio rtve play.
This commit is contained in:
parent
571d02cd5e
commit
894578ee74
@ -182,7 +182,7 @@ class RTVEALaCartaIE(InfoExtractor):
|
||||
class RTVEAudioIE(RTVEALaCartaIE):
|
||||
IE_NAME = 'rtve.es:audio'
|
||||
IE_DESC = 'RTVE audio'
|
||||
_VALID_URL = r'https?://(?:www\.)?rtve\.es/alacarta/audios/[^/]+/[^/]+/(?P<id>[0-9]+)/'
|
||||
_VALID_URL = r'https?://(?:www\.)?rtve\.es/(alacarta|play)/audios/[^/]+/[^/]+/(?P<id>[0-9]+)/'
|
||||
|
||||
_TESTS = [{
|
||||
'url': 'https://www.rtve.es/alacarta/audios/a-hombros-de-gigantes/palabra-ingeniero-codigos-informaticos-27-04-21/5889192/',
|
||||
@ -194,6 +194,16 @@ class RTVEAudioIE(RTVEALaCartaIE):
|
||||
'thumbnail': r're:https?://.+/1598856591583.jpg',
|
||||
'duration': 349.440,
|
||||
},
|
||||
}, {
|
||||
'url': 'https://www.rtve.es/play/audios/en-radio-3/ignatius-farray/5791165/',
|
||||
'md5': '072855ab89a9450e0ba314c717fa5ebc',
|
||||
'info_dict': {
|
||||
'id': '5791165',
|
||||
'ext': 'mp3',
|
||||
'title': 'Ignatius Farray',
|
||||
'thumbnail': r're:https?://.+/1613243011863.jpg',
|
||||
'duration': 3559.559,
|
||||
},
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
|
Loading…
Reference in New Issue
Block a user