soundcloud

package
v1.47.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2022 License: OSL-3.0 Imports: 6 Imported by: 2

README

SoundCloud

Android client

com.soundcloud.android

Newer versions are broken. Even with no proxy, I just get this over and over:

Signing you in

This one seems to work:

2020.03.19-release

API 24? Small fail. Big pass.

How to get client_id

First, make a request like this:

GET / HTTP/2
Host: m.soundcloud.com

In the HTML response, you should see something like this:

"clientId":"iZIs9mchVcX5lhVRyQGGAYlNPVldzAoX"

You can also get it with JADX, but more difficult:

com\soundcloud\android\api\di\a.java
return new kt.a(cVar, "dbdsA8b6V6Lw7wzu1x0T4CLxt58yd4Bf", iVar.deobfuscateString("NykCWyEEEyUrRCd2AQAtEAUdfy9HKAAkKRwjJh4cMSk="));

The client_id seems to last at least a year:

https://github.com/rrosajp/soundcloud-archive/commit/c02809dc

Image

artworks:

https://soundcloud.com/oembed?format=json&url=https://soundcloud.com/western_vinyl/jessica-risker-cut-my-hair
https://i1.sndcdn.com/artworks-000308141235-7ep8lo-t500x500.jpg

placeholder:

https://soundcloud.com/oembed?format=json&url=https://soundcloud.com/pdis_inpartmaint/harold-budd-perhaps-moss
https://soundcloud.com/images/fb_placeholder.png

avatars:

https://soundcloud.com/oembed?format=json&url=https://soundcloud.com/pdis_inpartmaint
https://i1.sndcdn.com/avatars-000274827119-0dxutu-t500x500.jpg

Why does this exist?

January 28 2022.

I use the site myself.

https://soundcloud.com/afterhour-sounds/premiere-ele-bisu-caradamom-coffee

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

This section is empty.

Types

type Media

type Media struct {
	// cf-media.sndcdn.com/QaV7QR1lxpc6.128.mp3?Policy=eyJTdGF0ZW1lbnQiOlt7IlJ...
	URL string
}

type Track

type Track struct {
	Artwork_URL_Template string
	Display_Date         string // 2021-04-12T07:00:01Z
	ID                   int
	Media                struct {
		Transcodings []struct {
			Format struct {
				Protocol string
			}
			// api-v2.soundcloud.com/media/soundcloud:tracks:103650107/
			// aca81dd5-2feb-4fc4-a102-036fb35fe44a/stream/progressive
			URL string
		}
	}
	Title string
	User  struct {
		Username string
	}
}

func Resolve added in v1.26.8

func Resolve(addr string) (*Track, error)

func Tracks added in v1.26.8

func Tracks(ids []int64) ([]Track, error)

func (Track) Artwork added in v1.47.9

func (t Track) Artwork() string

i1.sndcdn.com/avatars-000274827119-0dxutu-{size}.jpg i1.sndcdn.com/avatars-000274827119-0dxutu-t500x500.jpg

func (Track) Progressive added in v1.40.8

func (t Track) Progressive() (*Media, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL