From b0c13586f203774c59c7d3fc074d42f29de4ff24 Mon Sep 17 00:00:00 2001 From: Son Phan Trung Date: Wed, 1 Jan 2025 20:07:26 +0700 Subject: [PATCH] add TESTS --- yt_dlp/extractor/fitnessblender.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/yt_dlp/extractor/fitnessblender.py b/yt_dlp/extractor/fitnessblender.py index b96c4f076..757e93b51 100644 --- a/yt_dlp/extractor/fitnessblender.py +++ b/yt_dlp/extractor/fitnessblender.py @@ -4,6 +4,16 @@ class FitnessBlenderIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?fitnessblender\.com/videos/[\w-]+/(?PT)?(?P\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): video_id = self._match_valid_url(url).group('id')