Explorar o código

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

For playlists, YoutubeDL would set it to the playlist url.
Jaime Marquínez Ferrándiz %!s(int64=11) %!d(string=hai) anos
pai
achega
579657ad87
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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):