mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-07 17:33:41 +00:00
fix tests: genres, creators, cast
This commit is contained in:
parent
fa7b182291
commit
11f2ddfdac
@ -51,9 +51,9 @@ class PlaySuisseIE(InfoExtractor):
|
||||
'ext': 'mp4',
|
||||
'title': 'Azor',
|
||||
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
||||
'genres': 'Fiction',
|
||||
'creators': 'Andreas Fontana',
|
||||
'cast': 'Fabrizio Rongione; Stéphanie Cléau; Gilles Privat; Alexandre Trocki',
|
||||
'genres': ['Fiction'],
|
||||
'creators': ['Andreas Fontana'],
|
||||
'cast': ['Fabrizio Rongione', 'Stéphanie Cléau', 'Gilles Privat', 'Alexandre Trocki'],
|
||||
'location': 'France; Argentine',
|
||||
'release_year': 2021,
|
||||
'duration': 5981,
|
||||
@ -67,8 +67,8 @@ class PlaySuisseIE(InfoExtractor):
|
||||
'series': 'They all came out to Montreux',
|
||||
'title': 'They all came out to Montreux',
|
||||
'description': 'md5:0fefd8c5b4468a0bb35e916887681520',
|
||||
'genres': 'Documentary',
|
||||
'creators': 'Oliver Murray',
|
||||
'genres': ['Documentary'],
|
||||
'creators': ['Oliver Murray'],
|
||||
'location': 'Switzerland',
|
||||
'release_year': 2021,
|
||||
},
|
||||
@ -279,9 +279,9 @@ class PlaySuisseIE(InfoExtractor):
|
||||
'id': ('id', {str}),
|
||||
'title': ('name', {str}),
|
||||
'description': (('descriptionLong', 'description'), {str}, any),
|
||||
'genres': ('contentTypes', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
||||
'creators': ('directors', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
||||
'cast': ('mainCast', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
||||
'genres': ('contentTypes', ..., {str}),
|
||||
'creators': ('directors', ..., {str}),
|
||||
'cast': ('mainCast', ..., {str}),
|
||||
'location': ('productionCountries', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
||||
'release_year': ('year', {str}, {lambda x: x[:4]}, {int_or_none}),
|
||||
'duration': ('duration', {int_or_none}),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user