File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -184,15 +184,14 @@ def get_tracks_from_playlist(self, playlist):
184
184
identifier = track .get ("identifier" )
185
185
if isinstance (identifier , list ):
186
186
identifier = identifier [0 ]
187
- artist = track .get (
188
- "creator" , "Unknown artist"
189
- ) # Set a default value if 'creator' key is not present
190
- track_dict = {
191
- "artist" : artist ,
192
- "identifier" : identifier .split ("/" )[- 1 ],
193
- "title" : track .get ("title" ),
194
- }
195
- tracks .append (track_dict )
187
+
188
+ tracks .append (
189
+ {
190
+ "artist" : track .get ("creator" , "Unknown artist" ),
191
+ "identifier" : identifier .split ("/" )[- 1 ],
192
+ "title" : track .get ("title" ),
193
+ }
194
+ )
196
195
return self .get_track_info (tracks )
197
196
198
197
def get_track_info (self , tracks ):
You can’t perform that action at this time.
0 commit comments