diff options
| author | Remita Amine <remitamine@gmail.com> | 2020-11-17 14:46:02 +0100 | 
|---|---|---|
| committer | Remita Amine <remitamine@gmail.com> | 2020-11-17 14:46:02 +0100 | 
| commit | cb2b9a22a5a53dd63f26db7509f4438a19261e36 (patch) | |
| tree | db05a415e9dc10baf9fbd5f6812c7273227e9c94 | |
| parent | 5b867c15a8443c79e1521053c19db3ae5f679625 (diff) | |
[bandcamp] extract playlist_description(closes #22684)
| -rw-r--r-- | youtube_dl/extractor/bandcamp.py | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/youtube_dl/extractor/bandcamp.py b/youtube_dl/extractor/bandcamp.py index 731c7c25c..69e673a26 100644 --- a/youtube_dl/extractor/bandcamp.py +++ b/youtube_dl/extractor/bandcamp.py @@ -270,6 +270,7 @@ class BandcampAlbumIE(BandcampIE):              'title': '"Entropy" EP',              'uploader_id': 'jstrecords',              'id': 'entropy-ep', +            'description': 'md5:0ff22959c943622972596062f2f366a5',          },          'playlist_mincount': 3,      }, { @@ -279,6 +280,7 @@ class BandcampAlbumIE(BandcampIE):              'id': 'we-are-the-plague',              'title': 'WE ARE THE PLAGUE',              'uploader_id': 'insulters', +            'description': 'md5:b3cf845ee41b2b1141dc7bde9237255f',          },          'playlist_count': 2,      }] @@ -305,11 +307,14 @@ class BandcampAlbumIE(BandcampIE):              for t in track_info              if t.get('duration')] +        current = tralbum.get('current') or {} +          return {              '_type': 'playlist',              'uploader_id': uploader_id,              'id': playlist_id, -            'title': try_get(tralbum, lambda x: x['current']['title'], compat_str), +            'title': current.get('title'), +            'description': current.get('about'),              'entries': entries,          } | 
