[soundcloud:user] Defer download link resolve (Closes #5248)
authorSergey M․ <dstftw@gmail.com>
Thu, 14 May 2015 16:28:42 +0000 (22:28 +0600)
committerSergey M․ <dstftw@gmail.com>
Thu, 14 May 2015 16:28:42 +0000 (22:28 +0600)
Looks like final download links can expire before downloading process reach them. So, resolving download links right before actual downloading.

youtube_dl/extractor/soundcloud.py

index 183ff50f4fc2b15a2ca99704e9277b8c68abd576..c23c5ee0fb853f86e4662ad574b587610456159c 100644 (file)
@@ -336,7 +336,7 @@ class SoundcloudUserIE(SoundcloudIE):
             if len(new_entries) == 0:
                 self.to_screen('%s: End page received' % uploader)
                 break
-            entries.extend(self._extract_info_dict(e, quiet=True) for e in new_entries)
+            entries.extend(self.url_result(e['permalink_url'], 'Soundcloud') for e in new_entries)
 
         return {
             '_type': 'playlist',