mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-07-11 15:58:31 +00:00
use "getter" in playlist_from_matches()
This commit is contained in:
parent
a29bfa3b0c
commit
4e649c6a28
@ -317,9 +317,9 @@ def _real_extract(self, url):
|
|||||||
'data', 'target', 'sys', 'id')))
|
'data', 'target', 'sys', 'id')))
|
||||||
|
|
||||||
return self.playlist_from_matches(
|
return self.playlist_from_matches(
|
||||||
[f'https://www.fifa.com/fifaplus/{locale}/watch/{video_id}' for video_id in video_ids],
|
video_ids, article_id, page_info.get('articleTitle'),
|
||||||
article_id, page_info.get('articleTitle'), ie=FifaIE, multi_video=True,
|
getter=lambda x: f'https://www.fifa.com/fifaplus/{locale}/watch/{x}',
|
||||||
timestamp=parse_iso8601(page_info.get('articlePublishedDate')))
|
ie=FifaIE, multi_video=True, timestamp=parse_iso8601(page_info.get('articlePublishedDate')))
|
||||||
|
|
||||||
|
|
||||||
class FifaMovieIE(FifaBaseIE):
|
class FifaMovieIE(FifaBaseIE):
|
||||||
@ -364,9 +364,9 @@ def _real_extract(self, url):
|
|||||||
video_ids.append(video_entry_id)
|
video_ids.append(video_entry_id)
|
||||||
|
|
||||||
return self.playlist_from_matches(
|
return self.playlist_from_matches(
|
||||||
[f'https://www.fifa.com/fifaplus/{locale}/watch/{video_id}' for video_id in video_ids],
|
video_ids, movie_id, traverse_obj(movie_details, ('video', 'title')),
|
||||||
movie_id, traverse_obj(movie_details, ('video', 'title')), ie=FifaIE, multi_video=True,
|
getter=lambda x: f'https://www.fifa.com/fifaplus/{locale}/watch/{x}',
|
||||||
playlist_description=traverse_obj(movie_details, ('video', 'description')))
|
ie=FifaIE, multi_video=True, playlist_description=traverse_obj(movie_details, ('video', 'description')))
|
||||||
|
|
||||||
|
|
||||||
class FifaSeriesIE(FifaBaseIE):
|
class FifaSeriesIE(FifaBaseIE):
|
||||||
@ -406,6 +406,6 @@ def _real_extract(self, url):
|
|||||||
video_ids.extend(traverse_obj(serie_details, ('trailers', ..., 'entryId')))
|
video_ids.extend(traverse_obj(serie_details, ('trailers', ..., 'entryId')))
|
||||||
|
|
||||||
return self.playlist_from_matches(
|
return self.playlist_from_matches(
|
||||||
[f'https://www.fifa.com/fifaplus/{locale}/watch/{video_id}' for video_id in video_ids],
|
video_ids, series_id, strip_or_none(serie_details.get('title')),
|
||||||
series_id, strip_or_none(serie_details.get('title')), ie=FifaIE, multi_video=True,
|
getter=lambda x: f'https://www.fifa.com/fifaplus/{locale}/watch/{x}',
|
||||||
playlist_description=strip_or_none(serie_details.get('description')))
|
ie=FifaIE, multi_video=True, playlist_description=strip_or_none(serie_details.get('description')))
|
||||||
|
Loading…
Reference in New Issue
Block a user