From 11f2ddfdacc60e4f150519abc3596f44535156d0 Mon Sep 17 00:00:00 2001 From: v3DJG6GL <72495210+v3DJG6GL@users.noreply.github.com> Date: Fri, 9 May 2025 19:43:32 +0200 Subject: [PATCH] fix tests: genres, creators, cast --- yt_dlp/extractor/playsuisse.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/yt_dlp/extractor/playsuisse.py b/yt_dlp/extractor/playsuisse.py index cdcd707643..9bf5765fa7 100644 --- a/yt_dlp/extractor/playsuisse.py +++ b/yt_dlp/extractor/playsuisse.py @@ -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}),