mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-11 15:48:55 +00:00
parent
468f104ce7
commit
86925f6334
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
|
|
||||||
class FifaIE(InfoExtractor):
|
class FifaIE(InfoExtractor):
|
||||||
_VALID_URL = r'https?://www.fifa.com/fifaplus/(?P<locale>\w{2})/watch/(?P<id>\w+)/?'
|
_VALID_URL = r'https?://www.fifa.com/fifaplus/(?P<locale>\w{2})/watch/([^#?]+/)?(?P<id>\w+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://www.fifa.com/fifaplus/en/watch/7on10qPcnyLajDDU3ntg6y',
|
'url': 'https://www.fifa.com/fifaplus/en/watch/7on10qPcnyLajDDU3ntg6y',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
|
@ -93,8 +93,8 @@ def _real_extract(self, url):
|
||||||
'sig': preplay_parameters['signature'],
|
'sig': preplay_parameters['signature'],
|
||||||
})
|
})
|
||||||
|
|
||||||
formats = self._extract_m3u8_formats(
|
formats, subtitles = self._extract_m3u8_formats_and_subtitles(content_data['playURL'], video_id)
|
||||||
content_data['playURL'], video_id, note='Downloading m3u8 Information')
|
self._sort_formats(formats)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
|
@ -105,4 +105,5 @@ def _real_extract(self, url):
|
||||||
'categories': traverse_obj(video_details, (('videoCategory', 'videoSubcategory'),)),
|
'categories': traverse_obj(video_details, (('videoCategory', 'videoSubcategory'),)),
|
||||||
'thumbnail': traverse_obj(video_details, ('backgroundImage', 'src')),
|
'thumbnail': traverse_obj(video_details, ('backgroundImage', 'src')),
|
||||||
'formats': formats,
|
'formats': formats,
|
||||||
|
'subtitles': subtitles,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue