diff --git a/main.go b/main.go index cf27f40..8053fbf 100644 --- a/main.go +++ b/main.go @@ -26,6 +26,7 @@ const port = 8080 var ( ytdlCmd = []string{"youtube-dl"} videosPath = "./vids" + videosUrl = "/vids" cachePath = "./cache" dbPath = "./db.json" approval bool = false @@ -37,19 +38,27 @@ func parse() { ytcmd := ytdlCmd[0] flag.StringVar(&ytcmd, "ytdlcmd", ytcmd, "youtube-dl command seperated by spaces") flag.StringVar(&videosPath, "videospath", videosPath, "Path where videos are saved") + flag.StringVar(&videosUrl, "videosurl", videosUrl, "Prefix of the url, i.e. https://domain.com//