diff --git a/main.go b/main.go index f199b95..d88350a 100644 --- a/main.go +++ b/main.go @@ -166,6 +166,10 @@ func main() { w = writeJSONResponse(w, "Provide URL as query") return } + toAudio := r.FormValue("toaudio") + if toAudio == "on" { + log.Println("User requested audio") + } downloadURL, err := getYoutubeDownloadURL(userURL) if err != nil { diff --git a/templates/download.html b/templates/download.html index 1096679..58afe27 100644 --- a/templates/download.html +++ b/templates/download.html @@ -23,20 +23,28 @@ + +
+ +
+