mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-03-14 18:54:04 +00:00
add TESTS
This commit is contained in:
parent
f1ace898a5
commit
b0c13586f2
1 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,16 @@ from .common import InfoExtractor
|
||||||
|
|
||||||
class FitnessBlenderIE(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-]+/(?P<tc>T)?(?P<id>\d+)'
|
||||||
|
_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'},
|
||||||
|
}]
|
||||||
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')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue