bandcamp

package
v1.41.7 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: OSL-3.0 Imports: 9 Imported by: 1

README

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"},
}

Functions

This section is empty.

Types

type DataTralbum added in v1.40.8

type DataTralbum struct {
	Album_Release_Date string // 20 Jan 2017 00:00:00 GMT
	Art_ID             int
	Artist             string
	Current            struct {
		Title string
	}
	ID        int
	TrackInfo []struct {
		Title string
		File  Streams
	}
}

func NewDataTralbum added in v1.40.8

func NewDataTralbum(addr string) (*DataTralbum, error)

func (DataTralbum) Date added in v1.41.4

func (d DataTralbum) Date() (time.Time, error)

jonasmunk.bandcamp.com/track/altered-light

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 Streams added in v1.40.8

type Streams map[string]string

func (Streams) MP3_128 added in v1.40.8

func (s Streams) MP3_128() (string, bool)

some tracks cannot be streamed: schnaussandmunk.bandcamp.com/album/passage-2

type Tralbum added in v1.33.3

type Tralbum struct {
	Art_ID       int
	Release_Date int64
	Title        string
	Tracks       []struct {
		Track_Num     int
		Title         string
		Streaming_URL Streams
	}
	Tralbum_Artist string
}

All fields available with Track and Album

func NewTralbum added in v1.33.4

func NewTralbum(typ byte, id int) (*Tralbum, error)

Jump to

Keyboard shortcuts

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