mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-30 22:27:33 +01:00
add fitness blender
This commit is contained in:
parent
3905f64920
commit
f1ace898a5
@ -653,6 +653,7 @@ from .filmon import (
|
|||||||
)
|
)
|
||||||
from .filmweb import FilmwebIE
|
from .filmweb import FilmwebIE
|
||||||
from .firsttv import FirstTVIE
|
from .firsttv import FirstTVIE
|
||||||
|
from .fitnessblender import FitnessBlenderIE
|
||||||
from .fivetv import FiveTVIE
|
from .fivetv import FiveTVIE
|
||||||
from .flextv import FlexTVIE
|
from .flextv import FlexTVIE
|
||||||
from .flickr import FlickrIE
|
from .flickr import FlickrIE
|
||||||
|
15
yt_dlp/extractor/fitnessblender.py
Normal file
15
yt_dlp/extractor/fitnessblender.py
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
from .brightcove import BrightcoveNewIE
|
||||||
|
from .common import InfoExtractor
|
||||||
|
|
||||||
|
|
||||||
|
class FitnessBlenderIE(InfoExtractor):
|
||||||
|
_VALID_URL = r'https?://(?:www\.)?fitnessblender\.com/videos/[\w-]+/(?P<tc>T)?(?P<id>\d+)'
|
||||||
|
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)
|
Loading…
x
Reference in New Issue
Block a user