Documentation
¶
Index ¶
- Constants
- func NavidromeScrape(ctx context.Context, q *database.Queries, id string) (database.NavidromeCache, error)
- func SpotifyScrape(ctx context.Context, q *database.Queries, id string) (database.SpotifyCache, error)
- func YoutubeScrape(ctx context.Context, q *database.Queries, id string) (database.YoutubeCache, error)
- type Root
- type RootArtist
- type RootCoverArt
- type RootTrack
Constants ¶
View Source
const SpotifyUrlPrefix = "https://open.spotify.com/track/"
Variables ¶
This section is empty.
Functions ¶
func NavidromeScrape ¶ added in v0.12.0
func SpotifyScrape ¶
func YoutubeScrape ¶
Types ¶
type RootArtist ¶
type RootCoverArt ¶
type RootTrack ¶
type RootTrack struct {
ID string `json:"id"`
Name string `json:"name"`
URI string `json:"uri"`
AlbumOfTrack struct {
CoverArt struct {
Sources []RootCoverArt `json:"sources"`
} `json:"coverArt"`
} `json:"albumOfTrack"`
Previews struct {
AudioPreviews struct {
Items []struct {
URL string `json:"url"`
} `json:"items"`
} `json:"audioPreviews"`
} `json:"previews"`
FirstArtist struct {
Items []RootArtist `json:"items"`
} `json:"firstArtist"`
}
Click to show internal directories.
Click to hide internal directories.