aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-11-11 09:53:04 +0100
committerRemita Amine <remitamine@gmail.com>2019-11-11 09:53:04 +0100
commit2e9ad59a4d6dfd82b34a965cfc5b8c5a647d1598 (patch)
tree786bba6f053b683e2c9bdc1222020efaf292351b /youtube_dl/extractor
parent433e0710585e2414697cff6d444204e1db950bd7 (diff)
[soundcloud] check if the soundtrack has downloads left(closes #23045)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/soundcloud.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/soundcloud.py b/youtube_dl/extractor/soundcloud.py
index 875b9d887..e8ffb2cbe 100644
--- 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)