projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ad00c
)
[soundcloud:playlist] Provide video id for playlist entries (Closes #10733)
author
Sergey M․
<dstftw@gmail.com>
Fri, 23 Sep 2016 19:01:01 +0000
(
02:01
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 23 Sep 2016 19:01:01 +0000
(
02:01
+0700)
youtube_dl/extractor/soundcloud.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/soundcloud.py
b/youtube_dl/extractor/soundcloud.py
index 513c548290cec6952252f0c71387567ceb306fae..496cc5d8e28b08902ab7fab4397635a996784044 100644
(file)
--- a/
youtube_dl/extractor/soundcloud.py
+++ b/
youtube_dl/extractor/soundcloud.py
@@
-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',