From 686f8f60bac675f36e43f97228605a2dd7620236 Mon Sep 17 00:00:00 2001 From: Francesco Frassinelli Date: Tue, 17 Mar 2020 23:59:46 +0100 Subject: [PATCH] playlist_title is optional --- youtube_dl/extractor/rai.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/rai.py b/youtube_dl/extractor/rai.py index 915b0e1ae..ad51bf123 100644 --- a/youtube_dl/extractor/rai.py +++ b/youtube_dl/extractor/rai.py @@ -601,8 +601,10 @@ class RaiPlayRadioPlaylistIE(RaiPlayRadioBaseIE): entry.update({ 'track': entry['title'], 'track_number': index, - 'album': playlist_title, - 'artist': playlist_creator}) + 'artist': playlist_creator, + }) + if playlist_title: + entry['album'] = playlist_title return self.playlist_result( entries, playlist_id, playlist_title, playlist_description)