]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/extractor/stageplus.py
[cleanup] Fix infodict returned fields (#8906)
[yt-dlp.git] / yt_dlp / extractor / stageplus.py
index 4bed4d646a2fdf4d25513589e6304d7b8c57f2eb..77e4362fc6311cf1bfc4230994537810ec4d53f9 100644 (file)
@@ -21,7 +21,7 @@ class StagePlusVODConcertIE(InfoExtractor):
             'id': 'vod_concert_APNM8GRFDPHMASJKBSPJACG',
             'title': 'Yuja Wang plays Rachmaninoff\'s Piano Concerto No. 2 – from Odeonsplatz',
             'description': 'md5:50f78ec180518c9bdb876bac550996fc',
-            'artist': ['Yuja Wang', 'Lorenzo Viotti'],
+            'artists': ['Yuja Wang', 'Lorenzo Viotti'],
             'upload_date': '20230331',
             'timestamp': 1680249600,
             'release_date': '20210709',
@@ -40,10 +40,10 @@ class StagePlusVODConcertIE(InfoExtractor):
                 'release_timestamp': 1625788800,
                 'duration': 2207,
                 'chapters': 'count:5',
-                'artist': ['Yuja Wang'],
-                'composer': ['Sergei Rachmaninoff'],
+                'artists': ['Yuja Wang'],
+                'composers': ['Sergei Rachmaninoff'],
                 'album': 'Yuja Wang plays Rachmaninoff\'s Piano Concerto No. 2 – from Odeonsplatz',
-                'album_artist': ['Yuja Wang', 'Lorenzo Viotti'],
+                'album_artists': ['Yuja Wang', 'Lorenzo Viotti'],
                 'track': 'Piano Concerto No. 2 in C Minor, Op. 18',
                 'track_number': 1,
                 'genre': 'Instrumental Concerto',
@@ -474,7 +474,7 @@ def _real_extract(self, url):
         metadata = traverse_obj(data, {
             'title': 'title',
             'description': ('shortDescription', {str}),
-            'artist': ('artists', 'edges', ..., 'node', 'name'),
+            'artists': ('artists', 'edges', ..., 'node', 'name'),
             'timestamp': ('archiveReleaseDate', {unified_timestamp}),
             'release_timestamp': ('productionDate', {unified_timestamp}),
         })
@@ -494,7 +494,7 @@ def _real_extract(self, url):
                 'formats': formats,
                 'subtitles': subtitles,
                 'album': metadata.get('title'),
-                'album_artist': metadata.get('artist'),
+                'album_artists': metadata.get('artist'),
                 'track_number': idx,
                 **metadata,
                 **traverse_obj(video, {
@@ -506,8 +506,8 @@ def _real_extract(self, url):
                             'title': 'title',
                             'start_time': ('mark', {float_or_none}),
                         }),
-                    'artist': ('artists', 'edges', ..., 'node', 'name'),
-                    'composer': ('work', 'composers', ..., 'name'),
+                    'artists': ('artists', 'edges', ..., 'node', 'name'),
+                    'composers': ('work', 'composers', ..., 'name'),
                     'genre': ('work', 'genre', 'title'),
                 }),
             })