lib

package
v0.0.0-...-6c9b246 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAlbumUrl

func GetAlbumUrl(id string) (map[string]string, int)

func RunsText

func RunsText(j gjson.Result) (s string)

func ShelfRenderer

func ShelfRenderer(j gjson.Result) map[string]interface{}

Types

type Artist

type Artist struct {
	Title            string      `json:"title"`
	Description      string      `json:"description,omitempty"`
	BrowsePlaylistId string      `json:"browsePlaylistId,omitempty"`
	PlaylistId       string      `json:"playlistId,omitempty"`
	SubscriberCount  string      `json:"subscriberCount,omitempty"`
	Thumbnails       []Thumbnail `json:"thumbnails"`
	Items            Items       `json:"items"`
	More             ArtistMore  `json:"more"`
}

func GetArtist

func GetArtist(id string) (Artist, int)

type ArtistMore

type ArtistMore struct {
	Album   MoreItem `json:"albums"`
	Singles MoreItem `json:"singles"`
}

type ArtistNext

type ArtistNext struct {
	Title string `json:"title"`
	Items []Item `json:"items"`
}

func GetArtistNext

func GetArtistNext(id, params, ct, v string) (ArtistNext, int)

type Charts

type Charts struct {
	Options  Options `json:"options"`
	Artists  []Item  `json:"artists"`
	Trending []Item  `json:"trending"`
}

func GetCharts

func GetCharts(params, code string) (Charts, int)

type Explore

type Explore struct {
	TrendingId string `json:"trendingId"`
	ChartsId   string `json:"chartsId"`
	Albums     []Item `json:"albums_and_singles"`
	Trending   []Item `json:"trending"`
}

func GetExplore

func GetExplore() (Explore, int)

type Genre

type Genre struct {
	Title     string                 `json:"title"`
	Spotlight []Item                 `json:"spotlight"`
	Featured  []Item                 `json:"featured"`
	Community []Item                 `json:"community"`
	Shelf     map[string]interface{} `json:"shelf"`
}

func GetGenre

func GetGenre(param string) (Genre, int)

type Genres

type Genres struct {
	Moods  []Item `json:"moods"`
	Genres []Item `json:"genres"`
}

func GetGenres

func GetGenres() (Genres, int)

type Item

type Item struct {
	Id         string      `json:"id"`
	Title      string      `json:"title"`
	Sub        string      `json:"subtitle,omitempty"`
	SubId      string      `json:"subId,omitempty"`
	Thumbnails []Thumbnail `json:"thumbnails,omitempty"`
}

func MultiSelectMenuItemRenderer

func MultiSelectMenuItemRenderer(j, ref gjson.Result) []Item
func NavigationButton(s gjson.Result) []Item

func ResponsiveListItemRenderer

func ResponsiveListItemRenderer(s gjson.Result) []Item

func ResponsiveListItemRendererCH

func ResponsiveListItemRendererCH(s gjson.Result) []Item

func TwoRowItemRenderer

func TwoRowItemRenderer(a gjson.Result, t bool) []Item

type Items

type Items struct {
	Songs   []Item `json:"songs"`
	Albums  []Item `json:"albums"`
	Singles []Item `json:"singles"`
	Artists []Item `json:"recommendedArtists"`
}

type Lyrics

type Lyrics struct {
	Text   string `json:"text"`
	Source string `json:"source"`
}

func GetLyrics

func GetLyrics(id string) (Lyrics, int)

type MediaSession

type MediaSession struct {
	Thumbnails []Thumbnail `json:"thumbnails"`
	Album      string      `json:"album"`
}

type MoreItem

type MoreItem struct {
	BrowseId string `json:"id"`
	Params   string `json:"params"`
	Click    string `json:"click"`
	Visit    string `json:"visit"`
}

type Next

type Next struct {
	Err          error        `json:"error,omitempty"`
	LyricsId     string       `json:"lyricsId"`
	Songs        []Item       `json:"songs"`
	MediaSession MediaSession `json:"mediaSession"`
}

func GetNext

func GetNext(id string, skip bool) (Next, int)

type Options

type Options struct {
	Default string `json:"default"`
	All     []Item `json:"all"`
}

type Thumbnail

type Thumbnail struct {
	Height int64  `json:"height"`
	Width  int64  `json:"width"`
	Url    string `json:"url"`
}

func GetThumbnails

func GetThumbnails(j gjson.Result) []Thumbnail

Jump to

Keyboard shortcuts

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