Browse Source

[soundcloud:playlist] Provide video id for playlist entries (Closes #10733)

totalwebcasting
Sergey M․ 8 years ago
parent
commit
24628cf7db
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      youtube_dl/extractor/soundcloud.py

+ 5
- 1
youtube_dl/extractor/soundcloud.py View File

@ -477,7 +477,11 @@ class SoundcloudPlaylistIE(SoundcloudIE):
data = self._download_json(
base_url + data, playlist_id, 'Downloading playlist')
entries = [self.url_result(track['permalink_url'], 'Soundcloud') for track in data['tracks']]
entries = [
self.url_result(
track['permalink_url'], SoundcloudIE.ie_key(),
video_id=compat_str(track['id']) if track.get('id') else None)
for track in data['tracks'] if track.get('permalink_url')]
return {
'_type': 'playlist',


Loading…
Cancel
Save