[soundcloud] Set the 'webpage_url' field for each track
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 26 Oct 2014 18:08:36 +0000 (19:08 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sun, 26 Oct 2014 18:08:36 +0000 (19:08 +0100)
For playlists, YoutubeDL would set it to the playlist url.

youtube_dl/extractor/soundcloud.py

index c77671fd38c0e69ba6d362296f803489fbf0d15e..54256e1a29f02ad75dfdf828e7b4819455294a14 100644 (file)
@@ -141,6 +141,7 @@ class SoundcloudIE(InfoExtractor):
             'description': info['description'],
             'thumbnail': thumbnail,
             'duration': int_or_none(info.get('duration'), 1000),
+            'webpage_url': info.get('permalink_url'),
         }
         formats = []
         if info.get('downloadable', False):