spotifydl

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadAlbum

func DownloadAlbum(aid string)

DownloadAlbum Download album according to

func DownloadPlaylist

func DownloadPlaylist(pid string)

DownloadPlaylist Start initializes complete program

func DownloadSong

func DownloadSong(sid string)

DownloadSong will download a song with its identifier

func DownloadTrackList

func DownloadTrackList(cli UserData)

DownloadTrackList Start downloading given list of tracks

func Downloader

func Downloader(url string, track spotify.FullTrack)

Downloader is a function to download files

func GetYoutubeIds

func GetYoutubeIds(songName string) string

GetYoutubeIds takes the query as string and returns the search results video ID's

func InitAuth

func InitAuth() spotify.Client

InitAuth starts Authentication

Types

type UserData

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

UserData is a struct to hold all variables

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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