package main import ( // "fmt" // "net/http" // "net/url" // "strings" ) // TODO: make POST url global configurable func download_mp3_from_youtube(youtube_url string, folder string, filename string) { if (youtube_url != "" && folder != "" && filename != "") { // form := url.Values{} // form.Add("url", youtube_url) // form.Add("folder", folder) // form.Add("filename", filename) // httpClient := &http.Client{} // req, _ := http.NewRequest("POST", "http://127.0.0.1:1234/work", strings.NewReader(form.Encode())) // _, err := httpClient.Do(req) // if err != nil { // fmt.Printf("Command finished with error: %v", err) // } } }