1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-12-02 05:07:55 +01:00

playlist_title is optional

This commit is contained in:
Francesco Frassinelli 2020-03-17 23:59:46 +01:00
parent 603bce83e1
commit 686f8f60ba

View File

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