1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-23 00:07:49 +00:00

[rbmaradio] Add support for redbullradio.com URLs

This commit is contained in:
Steven Maude 2017-04-08 15:39:07 +01:00 committed by Sergey M
parent 04e431cf97
commit 95152630db

View file

@ -13,15 +13,15 @@ from ..utils import (
class RBMARadioIE(InfoExtractor): class RBMARadioIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?rbmaradio\.com/shows/(?P<show_id>[^/]+)/episodes/(?P<id>[^/?#&]+)' _VALID_URL = r'https?://(?:www\.)?(?:rbmaradio|redbullradio)\.com/shows/(?P<show_id>[^/]+)/episodes/(?P<id>[^/?#&]+)'
_TEST = { _TEST = {
'url': 'https://www.rbmaradio.com/shows/main-stage/episodes/ford-lopatin-live-at-primavera-sound-2011', 'url': 'https://www.rbmaradio.com/shows/main-stage/episodes/ford-lopatin-live-at-primavera-sound-2011',
'md5': '6bc6f9bcb18994b4c983bc3bf4384d95', 'md5': '6bc6f9bcb18994b4c983bc3bf4384d95',
'info_dict': { 'info_dict': {
'id': 'ford-lopatin-live-at-primavera-sound-2011', 'id': 'ford-lopatin-live-at-primavera-sound-2011',
'ext': 'mp3', 'ext': 'mp3',
'title': 'Main Stage - Ford & Lopatin', 'title': 'Main Stage - Ford & Lopatin at Primavera Sound',
'description': 'md5:4f340fb48426423530af5a9d87bd7b91', 'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
'thumbnail': r're:^https?://.*\.jpg', 'thumbnail': r're:^https?://.*\.jpg',
'duration': 2452, 'duration': 2452,
'timestamp': 1307103164, 'timestamp': 1307103164,