fix tests: genres, creators, cast

This commit is contained in:
v3DJG6GL 2025-05-09 19:43:32 +02:00 committed by GitHub
parent fa7b182291
commit 11f2ddfdac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}),