Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Find ¶
func (c *Client) Find(title string, artist string) (*MusicVideo, error)
Find calls the imvdb api with the provided title and artist and returns the first result that has a title that matches the provided title and has an artist that matches the provided artist. If either title or artist is omitted, it will return any.
type MusicVideo ¶
type MusicVideo struct {
ID int `json:"id"`
Title string `json:"song_title"`
Year int `json:"year"`
Images map[string]string `json:"image"`
Artists []Artist `json:"artists"`
}
func (MusicVideo) ArtistNames ¶
func (m MusicVideo) ArtistNames() string
ArtistNames returns a comma seperated list of all the names of all the artists of this MusicVideo flattened as one string. If there is no artist, an empty string is returned, if there is just one artist only that one artist's name is returned without a comma.
func (MusicVideo) Image ¶
func (m MusicVideo) Image() string
Image returns the location of the original image or an empty string if no such image is present.
Click to show internal directories.
Click to hide internal directories.