mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-06-30 06:34:27 +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',
|
'ext': 'mp4',
|
||||||
'title': 'Azor',
|
'title': 'Azor',
|
||||||
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
'description': 'md5:d41d8cd98f00b204e9800998ecf8427e',
|
||||||
'genres': 'Fiction',
|
'genres': ['Fiction'],
|
||||||
'creators': 'Andreas Fontana',
|
'creators': ['Andreas Fontana'],
|
||||||
'cast': 'Fabrizio Rongione; Stéphanie Cléau; Gilles Privat; Alexandre Trocki',
|
'cast': ['Fabrizio Rongione', 'Stéphanie Cléau', 'Gilles Privat', 'Alexandre Trocki'],
|
||||||
'location': 'France; Argentine',
|
'location': 'France; Argentine',
|
||||||
'release_year': 2021,
|
'release_year': 2021,
|
||||||
'duration': 5981,
|
'duration': 5981,
|
||||||
@ -67,8 +67,8 @@ class PlaySuisseIE(InfoExtractor):
|
|||||||
'series': 'They all came out to Montreux',
|
'series': 'They all came out to Montreux',
|
||||||
'title': 'They all came out to Montreux',
|
'title': 'They all came out to Montreux',
|
||||||
'description': 'md5:0fefd8c5b4468a0bb35e916887681520',
|
'description': 'md5:0fefd8c5b4468a0bb35e916887681520',
|
||||||
'genres': 'Documentary',
|
'genres': ['Documentary'],
|
||||||
'creators': 'Oliver Murray',
|
'creators': ['Oliver Murray'],
|
||||||
'location': 'Switzerland',
|
'location': 'Switzerland',
|
||||||
'release_year': 2021,
|
'release_year': 2021,
|
||||||
},
|
},
|
||||||
@ -279,9 +279,9 @@ class PlaySuisseIE(InfoExtractor):
|
|||||||
'id': ('id', {str}),
|
'id': ('id', {str}),
|
||||||
'title': ('name', {str}),
|
'title': ('name', {str}),
|
||||||
'description': (('descriptionLong', 'description'), {str}, any),
|
'description': (('descriptionLong', 'description'), {str}, any),
|
||||||
'genres': ('contentTypes', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
'genres': ('contentTypes', ..., {str}),
|
||||||
'creators': ('directors', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
'creators': ('directors', ..., {str}),
|
||||||
'cast': ('mainCast', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
'cast': ('mainCast', ..., {str}),
|
||||||
'location': ('productionCountries', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
'location': ('productionCountries', ..., {str}, all, {unpack(join_nonempty, delim='; ')}, filter),
|
||||||
'release_year': ('year', {str}, {lambda x: x[:4]}, {int_or_none}),
|
'release_year': ('year', {str}, {lambda x: x[:4]}, {int_or_none}),
|
||||||
'duration': ('duration', {int_or_none}),
|
'duration': ('duration', {int_or_none}),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user