mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-05-10 09:26:13 +00:00
Compare commits
3 Commits
b0c13586f2
...
a36296dcf1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a36296dcf1 | ||
|
|
94367ebabb | ||
|
|
6fd35f0cf6 |
@ -3,13 +3,14 @@ from .common import InfoExtractor
|
||||
|
||||
|
||||
class FitnessBlenderIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?fitnessblender\.com/videos/[\w-]+/(?P<tc>T)?(?P<id>\d+)'
|
||||
_VALID_URL = r'https?://(?:www\.)?fitnessblender\.com/videos/[\w-]+/T?(?P<id>\d+)'
|
||||
|
||||
_TESTS = [{
|
||||
'url': 'https://www.fitnessblender.com/page/fb-plus-player-test',
|
||||
'url': 'https://www.fitnessblender.com/videos/lower-body-strength-hiit-workout-strength-sets-with-hiit-cardio-burst',
|
||||
'info_dict': {
|
||||
'id': '6076568195001',
|
||||
'id': '6296677311001',
|
||||
'ext': 'mp4',
|
||||
'title': 'Sports Endurance Workout - Stamina, Speed, and Agility Workout',
|
||||
'title': 'WO 2022-02-02 Ks Lower Body HIIT and Strength',
|
||||
'thumbnail': r're:^https://.+\.jpg',
|
||||
},
|
||||
'params': {'skip_download': 'm3u8'},
|
||||
@ -17,9 +18,7 @@ class FitnessBlenderIE(InfoExtractor):
|
||||
def _real_extract(self, url):
|
||||
video_id = self._match_valid_url(url).group('id')
|
||||
|
||||
account_id = '6036648099001'
|
||||
player_id = 'skIgx8kLxj'
|
||||
|
||||
return self.url_result(
|
||||
f'https://players.brightcove.net/{account_id}/{player_id}_default/index.html?videoId={video_id}',
|
||||
BrightcoveNewIE)
|
||||
f'https://players.brightcove.net/6036648099001/skIgx8kLxj_default/index.html?videoId={video_id}',
|
||||
BrightcoveNewIE, video_id)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user