2024-12-25 06:55:47 -06:00
|
|
|
from .brightcove import BrightcoveNewIE
|
|
|
|
from .common import InfoExtractor
|
|
|
|
|
|
|
|
|
|
|
|
class FitnessBlenderIE(InfoExtractor):
|
2025-01-09 20:58:30 -06:00
|
|
|
_VALID_URL = r'https?://(?:www\.)?fitnessblender\.com/videos/[\w-]+/T?(?P<id>\d+)'
|
|
|
|
|
2025-01-01 07:07:26 -06:00
|
|
|
_TESTS = [{
|
|
|
|
'url': 'https://www.fitnessblender.com/page/fb-plus-player-test',
|
|
|
|
'info_dict': {
|
|
|
|
'id': '6076568195001',
|
|
|
|
'ext': 'mp4',
|
|
|
|
'title': 'Sports Endurance Workout - Stamina, Speed, and Agility Workout',
|
|
|
|
'thumbnail': r're:^https://.+\.jpg',
|
|
|
|
},
|
|
|
|
'params': {'skip_download': 'm3u8'},
|
|
|
|
}]
|
2024-12-25 06:55:47 -06:00
|
|
|
def _real_extract(self, url):
|
|
|
|
video_id = self._match_valid_url(url).group('id')
|
|
|
|
|
|
|
|
return self.url_result(
|
2025-01-09 20:58:39 -06:00
|
|
|
f'https://players.brightcove.net/6036648099001/skIgx8kLxj_default/index.html?videoId={video_id}',
|
|
|
|
BrightcoveNewIE, video_id)
|
|
|
|
|