commit: 2e9ad59a4d6dfd82b34a965cfc5b8c5a647d1598
parent 433e0710585e2414697cff6d444204e1db950bd7
Author: Remita Amine <remitamine@gmail.com>
Date: Mon, 11 Nov 2019 09:53:04 +0100
[soundcloud] check if the soundtrack has downloads left(closes #23045)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py
@@ -276,7 +276,7 @@ class SoundcloudIE(InfoExtractor):
if secret_token:
query['secret_token'] = secret_token
- if info.get('downloadable'):
+ if info.get('downloadable') and info.get('has_downloads_left'):
format_url = update_url_query(
info.get('download_url') or track_base_url + '/download', query)
format_urls.add(format_url)