Compare commits

..

No commits in common. "a36296dcf15c86536d6ad269aa303f1907d82d75" and "b0c13586f203774c59c7d3fc074d42f29de4ff24" have entirely different histories.

View File

@ -3,14 +3,13 @@ from .common import InfoExtractor
class FitnessBlenderIE(InfoExtractor): class FitnessBlenderIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?fitnessblender\.com/videos/[\w-]+/T?(?P<id>\d+)' _VALID_URL = r'https?://(?:www\.)?fitnessblender\.com/videos/[\w-]+/(?P<tc>T)?(?P<id>\d+)'
_TESTS = [{ _TESTS = [{
'url': 'https://www.fitnessblender.com/videos/lower-body-strength-hiit-workout-strength-sets-with-hiit-cardio-burst', 'url': 'https://www.fitnessblender.com/page/fb-plus-player-test',
'info_dict': { 'info_dict': {
'id': '6296677311001', 'id': '6076568195001',
'ext': 'mp4', 'ext': 'mp4',
'title': 'WO 2022-02-02 Ks Lower Body HIIT and Strength', 'title': 'Sports Endurance Workout - Stamina, Speed, and Agility Workout',
'thumbnail': r're:^https://.+\.jpg', 'thumbnail': r're:^https://.+\.jpg',
}, },
'params': {'skip_download': 'm3u8'}, 'params': {'skip_download': 'm3u8'},
@ -18,7 +17,9 @@ class FitnessBlenderIE(InfoExtractor):
def _real_extract(self, url): def _real_extract(self, url):
video_id = self._match_valid_url(url).group('id') video_id = self._match_valid_url(url).group('id')
return self.url_result( account_id = '6036648099001'
f'https://players.brightcove.net/6036648099001/skIgx8kLxj_default/index.html?videoId={video_id}', player_id = 'skIgx8kLxj'
BrightcoveNewIE, video_id)
return self.url_result(
f'https://players.brightcove.net/{account_id}/{player_id}_default/index.html?videoId={video_id}',
BrightcoveNewIE)