data

package
v0.0.0-...-1db6e0a Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36"

Variables

View Source
var Version = "DEVELOPMENT"

Functions

func ExtractImageURL

func ExtractImageURL(image string) string

Types

type Album

type Album struct {
	Artist string
	Name   string
	Image  string
	About  [2]string

	Tracks []Track
}

func (*Album) Parse

func (a *Album) Parse(doc *goquery.Document) error

type AlbumAppearances

type AlbumAppearances struct {
	Id          int `json:"id"`
	TrackNumber int `json:"track_number"`
	Song        struct {
		Title string `json:"title"`
		Url   string `json:"url"`
	}
}

type Annotation

type Annotation struct {
	HTML string `json:"html"`
}

type AnnotationsResponse

type AnnotationsResponse struct {
	Response struct {
		Referent struct {
			Annotations []struct {
				Body Annotation `json:"body"`
			} `json:"annotations"`
		} `json:"referent"`
	} `json:"response"`
}

type Artist

type Artist struct {
	Name string `json:"name"`
}

type SearchResponse

type SearchResponse struct {
	Response struct {
		Sections sections
	}
}

type SearchResults

type SearchResults struct {
	Query    string
	Sections sections
}

type Song

type Song struct {
	Artist  string
	Title   string
	Image   string
	Lyrics  string
	Credits map[string]string
	About   [2]string
	Album   struct {
		URL   string
		Name  string
		Image string
	}
}

func (*Song) Parse

func (s *Song) Parse(doc *goquery.Document)

type Track

type Track struct {
	Title string
	Url   string
}

Jump to

Keyboard shortcuts

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