I run CloudRip, a small web app that turns SoundCloud tracks people are allowed to keep (their own uploads, free-download and Creative Commons releases) into tagged MP3s. A user reported on Reddit that some downloads stopped at exactly 30 seconds. The audio wasn't corrupt; the file was complete. It just contained a 30-second clip.
That is SoundCloud Go+ at work. Tracks licensed under subscription terms play in full only for Go+ subscribers. Everyone else gets a preview. The bug was that my backend treated the preview stream as the real thing.
What the track metadata tells you
The track object you get back already says whether full playback is available. Three signals matter:
1. policy
-
ALLOW/MONETIZE: normal playback -
SNIP: preview only for non-subscribers -
BLOCK: not playable in your region
2. duration vs full_duration
For a snipped track, duration is 30000 (ms) while full_duration holds the real length. If you display duration in your UI you'll show "0:30" for a 4-minute song, which confuses users even before they download.
3. The transcodings
Each entry in media.transcodings has a snipped flag and a format.protocol. If every transcoding is snipped, there is no full stream for you. Protocols containing encrypted (for example cbc-encrypted-hls) are DRM-protected and can't be turned into a plain MP3 either.
The check
def is_go_plus_locked(item: dict, transcodings: list) -> bool: policy = (item.get("policy") or "").upper() if policy in ("BLOCK", "SNIP"): return True if any("encrypted" in (tc.get("format") or {}).get("protocol", "") for tc in transcodings): return True return bool(transcodings) and all(tc.get("snipped") for tc in transcodings) I run this once when the track is resolved. If it returns True, the API responds with a clear 403 explaining that the track is a Go+ preview, and the frontend shows a "Go+" badge instead of a download button. For display I use full_duration with a fallback to duration.
Lessons
- Check the policy before the stream. The metadata says what you'll get; the stream URL won't.
- Fail loudly and explain why. A silent 30-second MP3 looks like a broken app. A message saying "this is a Go+ preview" makes sense to the user.
- Don't try to get around it. Encrypted streams and subscriber-only audio are protected on purpose. The right answer is to tell the user and point them to the official app.
I also wrote a non-technical explainer for listeners: Why Some SoundCloud Tracks Only Play 30 Seconds.


