[soundcloud] Check direct links validity (Closes #5101)
authorSergey M․ <dstftw@gmail.com>
Mon, 2 Mar 2015 16:39:32 +0000 (22:39 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 2 Mar 2015 16:39:32 +0000 (22:39 +0600)
youtube_dl/extractor/soundcloud.py

index c5284fa673b7eda4f74191fba6a788df39939a51..95788098ec1c0a201d16797599047e096a9697c8 100644 (file)
@@ -200,8 +200,9 @@ class SoundcloudIE(InfoExtractor):
                 if f['format_id'].startswith('rtmp'):
                     f['protocol'] = 'rtmp'
 
-            self._sort_formats(formats)
-            result['formats'] = formats
+        self._check_formats(formats, track_id)
+        self._sort_formats(formats)
+        result['formats'] = formats
 
         return result