Changed the default download directory to the current directory

Also have the log print the location
testing
Justin Reichardt 2022-06-17 19:29:29 -05:00
parent d3476c63fa
commit e4ef9da436
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import (
"os"
"os/exec"
"net/http"
"path"
)
const template = `
@ -82,10 +83,11 @@ func operationHandler(){
func main () {
if os.Getenv("VIDDOWNLOC") == "" {
config.saveLocation = "/srv/"
config.saveLocation = "./"
} else {
config.saveLocation = os.Getenv("VIDDOWNLOC")
}
log.Println("Downloading files to: " + config.saveLocation)
go operationHandler()