82 session file location (#91)

* change session file location

* makefile refactor

* gha refactor
This commit is contained in:
Marco
2023-09-26 10:25:14 +02:00
committed by GitHub
parent 8337aae438
commit 4710db25ee
5 changed files with 32 additions and 19 deletions

12
main.go
View File

@@ -14,11 +14,12 @@ import (
)
var (
port int
queueSize int
configFile string
downloadPath string
downloaderPath string
port int
queueSize int
configFile string
downloadPath string
downloaderPath string
sessionFilePath string
requireAuth bool
username string
@@ -40,6 +41,7 @@ func init() {
flag.StringVar(&configFile, "conf", "./config.yml", "Config file path")
flag.StringVar(&downloadPath, "out", ".", "Where files will be saved")
flag.StringVar(&downloaderPath, "driver", "yt-dlp", "yt-dlp executable path")
flag.StringVar(&sessionFilePath, "session", ".", "session file path")
flag.BoolVar(&requireAuth, "auth", false, "Enable RPC authentication")
flag.StringVar(&username, "user", userFromEnv, "Username required for auth")