Documentation ¶
Index ¶
Constants ¶
View Source
const ( YOUTUBE_API_URL = "https://www.googleapis.com/youtube/v3/search?part=snippet&q=%s&type=video&key=%s" YOUTUBEDL_CMD = "(cd %s && youtube-dl --extract-audio --audio-format mp3 --audio-quality 0 %s)" DOWNLOAD_PATH = "data" AMPLIFY_RATIO = 1 TIMEOUT_SECONDS = 2 FILENAME_CMD = "find %s/ | grep \"%s\" | grep '.mp3'" AMPLIFY_CMD = "ffmpeg -i \"%s\" -filter:a \"volume=%d\" \"%s\" && rm \"%s\"" )
View Source
const ( SPOTIFY_AUTH_URL = "https://accounts.spotify.com/api/token" SPOTIFY_PLAYLIST_ITEMS_URL = "https://api.spotify.com/v1/playlists/%s/tracks" BASIC_HEADER = "Basic %s" BEARER_AUTHORIZATION = "Bearer %s" )
Variables ¶
This section is empty.
Functions ¶
func AmplifyAudio ¶
func DownloadTrack ¶
func GetPlaylistItems ¶
func SpotifyLogin ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.