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/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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue