1 from .common
import InfoExtractor
8 class WimbledonIE(InfoExtractor
):
9 _VALID_URL
= r
'https?://(?:www\.)?wimbledon\.com/\w+/video/media/(?P<id>\d+)\.html'
11 'url': 'https://www.wimbledon.com/en_GB/video/media/6330247525112.html',
13 'id': '6330247525112',
15 'timestamp': 1687972186,
17 'thumbnail': r
're:^https://[\w.-]+\.prod\.boltdns\.net/[^?#]+/image\.jpg',
18 'upload_date': '20230628',
19 'title': 'Coco Gauff | My Wimbledon Inspiration',
20 'tags': ['features', 'trending', 'homepage'],
21 'uploader_id': '3506358525001',
25 'url': 'https://www.wimbledon.com/en_GB/video/media/6308703111112.html',
27 'id': '6308703111112',
29 'thumbnail': r
're:^https://[\w.-]+\.prod\.boltdns\.net/[^?#]+/image\.jpg',
30 'description': 'null',
31 'upload_date': '20220629',
32 'uploader_id': '3506358525001',
33 'title': 'Roblox | WimbleWorld ',
35 'tags': ['features', 'kids'],
36 'timestamp': 1656500867,
39 'url': 'https://www.wimbledon.com/en_US/video/media/6309327106112.html',
40 'only_matching': True,
42 'url': 'https://www.wimbledon.com/es_Es/video/media/6308377909112.html',
43 'only_matching': True,
46 def _real_extract(self
, url
):
47 video_id
= self
._match
_id
(url
)
48 metadata
= self
._download
_json
(
49 f
'https://www.wimbledon.com/relatedcontent/rest/v2/wim_v1/en/content/wim_v1_{video_id}_en', video_id
)
52 '_type': 'url_transparent',
53 'url': f
'http://players.brightcove.net/3506358525001/default_default/index.html?videoId={video_id}',
54 'ie_key': 'BrightcoveNew',
56 **traverse_obj(metadata
, {
58 'description': 'description',
59 'duration': ('metadata', 'duration', {parse_duration}
),