浏览代码

[soundcloud] Set the 'webpage_url' field for each track

For playlists, YoutubeDL would set it to the playlist url.
Jaime Marquínez Ferrándiz 11 年之前
父节点
当前提交
579657ad87
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      youtube_dl/extractor/soundcloud.py

+ 1 - 0
youtube_dl/extractor/soundcloud.py

@@ -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):