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

pull/8/head
Sergey M․ 2016-09-24 02:01:01 +07:00
rodzic 71ad00c09f
commit 24628cf7db
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 2C393E0F18A9236D
1 zmienionych plików z 5 dodań i 1 usunięć

Wyświetl plik

@ -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',