Changed the default download directory to the current directory
Also have the log print the locationtesting
parent
d3476c63fa
commit
e4ef9da436
|
|
@ -24,6 +24,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"path"
|
||||||
)
|
)
|
||||||
|
|
||||||
const template = `
|
const template = `
|
||||||
|
|
@ -82,10 +83,11 @@ func operationHandler(){
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
if os.Getenv("VIDDOWNLOC") == "" {
|
if os.Getenv("VIDDOWNLOC") == "" {
|
||||||
config.saveLocation = "/srv/"
|
config.saveLocation = "./"
|
||||||
} else {
|
} else {
|
||||||
config.saveLocation = os.Getenv("VIDDOWNLOC")
|
config.saveLocation = os.Getenv("VIDDOWNLOC")
|
||||||
}
|
}
|
||||||
|
log.Println("Downloading files to: " + config.saveLocation)
|
||||||
|
|
||||||
go operationHandler()
|
go operationHandler()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue