bandcamp

package
v1.50.7 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: OSL-3.0 Imports: 9 Imported by: 1

README

Bandcamp

Android client

com.bandcamp.android

https://github.com/httptoolkit/frida-android-unpinning

2022-02-25

Bandcamp app as of the date above, does not monitor Bandcamp URLs, so deep linking is not possible. They do have their own scheme, but the only two URLs I could find are not helpful:

x-bandcamp://open
x-bandcamp://show_tralbum?tralbum_type=a&tralbum_id=531538254&play

https://hisaac.net/2016/10/09/deep-linking-in-the-bandcamp-ios-app.html

The API used with Bandcamp Android requires IDs for everything. This is the case going back to 2016 at least.

Why does this exist?

2022-02-28

https://jessylanza.bandcamp.com/album/pull-my-hair-back

Pandora has this too, so we might be able to drop Bandcamp:

https://pandora.com/artist/jessy-lanza/pull-my-hair-back/ALlfwpXzvcrVK59

Also this:

https://github.com/iheanyi/bandcamp-dl/issues/150

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Images = []Image{
	{ID: 0, Width: 1500, Height: 1500, Ext: ".jpg"},
	{ID: 1, Width: 1500, Height: 1500, Ext: ".png"},
	{ID: 2, Width: 350, Height: 350, Ext: ".jpg"},
	{ID: 3, Width: 100, Height: 100, Ext: ".jpg"},
	{ID: 4, Width: 300, Height: 300, Ext: ".jpg"},
	{ID: 5, Width: 700, Height: 700, Ext: ".jpg"},
	{ID: 6, Width: 100, Height: 100, Ext: ".jpg"},
	{ID: 7, Width: 150, Height: 150, Ext: ".jpg"},
	{ID: 8, Width: 124, Height: 124, Ext: ".jpg"},
	{ID: 9, Width: 210, Height: 210, Ext: ".jpg"},
	{ID: 10, Width: 1200, Height: 1200, Ext: ".jpg"},
	{ID: 11, Width: 172, Height: 172, Ext: ".jpg"},
	{ID: 12, Width: 138, Height: 138, Ext: ".jpg"},
	{ID: 13, Width: 380, Height: 380, Ext: ".jpg"},
	{ID: 14, Width: 368, Height: 368, Ext: ".jpg"},
	{ID: 15, Width: 135, Height: 135, Ext: ".jpg"},
	{ID: 16, Width: 700, Height: 700, Ext: ".jpg"},
	{ID: 20, Width: 1024, Height: 1024, Ext: ".jpg"},
	{ID: 21, Width: 120, Height: 120, Ext: ".jpg"},
	{ID: 22, Width: 25, Height: 25, Ext: ".jpg"},
	{ID: 23, Width: 300, Height: 300, Ext: ".jpg"},
	{ID: 24, Width: 300, Height: 300, Ext: ".jpg"},
	{ID: 25, Width: 700, Height: 700, Ext: ".jpg"},
	{ID: 26, Width: 800, Height: 600, Ext: ".jpg", Crop: true},
	{ID: 27, Width: 715, Height: 402, Ext: ".jpg", Crop: true},
	{ID: 28, Width: 768, Height: 432, Ext: ".jpg", Crop: true},
	{ID: 29, Width: 100, Height: 75, Ext: ".jpg", Crop: true},
	{ID: 31, Width: 1024, Height: 1024, Ext: ".png"},
	{ID: 32, Width: 380, Height: 285, Ext: ".jpg", Crop: true},
	{ID: 33, Width: 368, Height: 276, Ext: ".jpg", Crop: true},
	{ID: 36, Width: 400, Height: 300, Ext: ".jpg", Crop: true},
	{ID: 37, Width: 168, Height: 126, Ext: ".jpg", Crop: true},
	{ID: 38, Width: 144, Height: 108, Ext: ".jpg", Crop: true},
	{ID: 41, Width: 210, Height: 210, Ext: ".jpg"},
	{ID: 42, Width: 50, Height: 50, Ext: ".jpg"},
	{ID: 43, Width: 100, Height: 100, Ext: ".jpg"},
	{ID: 44, Width: 200, Height: 200, Ext: ".jpg"},
	{ID: 50, Width: 140, Height: 140, Ext: ".jpg"},
	{ID: 65, Width: 700, Height: 700, Ext: ".jpg"},
	{ID: 66, Width: 1200, Height: 1200, Ext: ".jpg"},
	{ID: 67, Width: 350, Height: 350, Ext: ".jpg"},
	{ID: 68, Width: 210, Height: 210, Ext: ".jpg"},
	{ID: 69, Width: 700, Height: 700, Ext: ".jpg"},
}
View Source
var LogLevel format.LogLevel

Functions

This section is empty.

Types

type Band added in v1.29.5

type Band struct {
	Name        string
	Discography []Item
}

type Image added in v1.40.8

type Image struct {
	ID     int64
	Width  int
	Height int
	Ext    string
	Crop   bool
}

func (Image) Format added in v1.40.8

func (i Image) Format(artID int64) string

Extension is optional.

type Item added in v1.35.1

type Item struct {
	Item_Type string
	Item_ID   int
}

func NewItem added in v1.35.2

func NewItem(addr string) (*Item, error)

func (Item) Band added in v1.48.6

func (i Item) Band() (*Band, error)

func (Item) Tralbum added in v1.35.1

func (i Item) Tralbum() (*Tralbum, error)

func (Item) Type added in v1.48.6

func (i Item) Type() string

type Track added in v1.33.4

type Track struct {
	Track_Num     int
	Title         string
	Streaming_URL map[string]string
}

func (Track) MP3_128 added in v1.48.6

func (t Track) MP3_128() (string, bool)

type Tralbum added in v1.33.3

type Tralbum struct {
	Art_ID         int
	Release_Date   int64
	Title          string
	Tracks         []Track
	Tralbum_Artist string
}

func (Tralbum) Base added in v1.49.7

func (t Tralbum) Base() string

func (Tralbum) Date added in v1.48.7

func (t Tralbum) Date() time.Time

Jump to

Keyboard shortcuts

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