diff --git a/go.mod b/go.mod index 477c7aa..4580923 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module gitlab.com/balki/ytui go 1.18 -require golang.org/x/net v0.2.0 +require golang.org/x/net v0.5.0 diff --git a/go.sum b/go.sum index 2195436..7993011 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -golang.org/x/net v0.2.0 h1:sZfSu1wtKLGlWI4ZZayP0ck9Y73K1ynO6gqzTdBVdPU= -golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY= +golang.org/x/net v0.5.0 h1:GyT4nK/YDHSqa1c4753ouYCDajOYKTja9Xb/OHtgvSw= +golang.org/x/net v0.5.0/go.mod h1:DivGGAXEgPSlEBzxGzZI+ZLohi+xUj054jfeKui00ws= diff --git a/main.go b/main.go index 8910f32..5d36f04 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,7 @@ var assetsFS embed.FS var ( ytdlCmd = []string{"youtube-dl"} videosPath = "./vids" - videosUrl = "/vids" + videosURL = "/vids" cachePath = "./cache" assetsPath = "./assets" saveAssets = false @@ -46,7 +46,7 @@ func parse() { flag.StringVar(&ytcmd, "ytdlcmd", ytcmd, "youtube-dl command seperated by spaces") flag.StringVar(&title, "title", title, "Title of the page") flag.StringVar(&videosPath, "videospath", videosPath, "Path where videos are saved") - flag.StringVar(&videosUrl, "videosurl", videosUrl, "Prefix of the url, i.e. https://domain.com//