spotifytwitchsings

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlbumHandler

func AlbumHandler(response http.ResponseWriter, request *http.Request)

func CSSHandler

func CSSHandler(response http.ResponseWriter, request *http.Request)

func CachedTwitchGetSongs

func CachedTwitchGetSongs(fromFile bool) (songlist []twitchSingsSong, err error)

func CompareTrackList

func CompareTrackList(cli UserData)

CompareTrackList Start downloading given list of tracks

func DownloadAlbum

func DownloadAlbum(aid string)

DownloadAlbum Download album according to

func DownloadPlaylist

func DownloadPlaylist(pid string)

DownloadPlaylist Start initializes complete program

func HandleHTTP

func HandleHTTP()

func HomeHandler

func HomeHandler(response http.ResponseWriter, request *http.Request)

func InitAuth

func InitAuth() spotify.Client

InitAuth starts Authentication

func NotFoundHandler

func NotFoundHandler(response http.ResponseWriter, request *http.Request)

func PlaylistHandler

func PlaylistHandler(response http.ResponseWriter, request *http.Request)

func SpotifyArtistsAsString

func SpotifyArtistsAsString(artists []spotify.SimpleArtist) string

func SpotifyGetPlaylistTracks

func SpotifyGetPlaylistTracks(pid string) []spotify.FullTrack

func TwitchGetSongs

func TwitchGetSongs() (songlist []twitchSingsSong, err error)

Types

type MatchType

type MatchType int
const (
	MatchNoMatch           MatchType = 0
	MatchTrackNameOnly     MatchType = 1
	MatchBothNameAndArtist MatchType = 2
	MatchNameOnlyFuzzy     MatchType = 3 // Not yet implemented
	MatchBothFuzzy         MatchType = 4 // Not yet implemented
)

func SpotifyListContains

func SpotifyListContains(trackName string, artistName []string) (MatchType, twitchSingsSong)

type UserData

type UserData struct {
	UserClient    spotify.Client
	TrackList     []spotify.FullTrack
	YoutubeIDList []string
}

UserData is a struct to hold all variables

Jump to

Keyboard shortcuts

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