update usage, dependencies
This commit is contained in:
parent
7f14ac3221
commit
00504d546d
34
README.md
34
README.md
@ -24,20 +24,26 @@ Usage
|
|||||||
-----
|
-----
|
||||||
|
|
||||||
❯ ~/go/bin/ytui -h
|
❯ ~/go/bin/ytui -h
|
||||||
2022/06/30 10:53:46 Youtube UI
|
2022/08/25 17:43:36 Youtube UI
|
||||||
Usage of /home/balki/go/bin/ytui:
|
Usage of /home/balki/go/bin/ytui:
|
||||||
-cachepath string
|
-assetspath string
|
||||||
Path where temporary download files are saved (default "./cache")
|
Path where css files are saved and served (default "./assets")
|
||||||
-dbpath string
|
-cachepath string
|
||||||
Path where downloaded info is saved (default "./db.json")
|
Path where temporary download files are saved (default "./cache")
|
||||||
-port int
|
-dbpath string
|
||||||
Port to listen on (default 8080)
|
Path where downloaded info is saved (default "./db.json")
|
||||||
-videospath string
|
-port int
|
||||||
Path where videos are saved (default "./vids")
|
Port to listen on (default 8080)
|
||||||
-videosurl string
|
-saveassets
|
||||||
Prefix of the url, i.e. https://domain.com/<this var>/<video filename> (default "/vids")
|
Should the assets be saved in dir, so can be served by web server
|
||||||
-ytdlcmd string
|
-title string
|
||||||
youtube-dl command seperated by spaces (default "youtube-dl")
|
Title of the page (default "Youtube Downloader")
|
||||||
|
-videospath string
|
||||||
|
Path where videos are saved (default "./vids")
|
||||||
|
-videosurl string
|
||||||
|
Prefix of the url, i.e. https://domain.com/<this var>/<video filename> (default "/vids")
|
||||||
|
-ytdlcmd string
|
||||||
|
youtube-dl command seperated by spaces (default "youtube-dl")
|
||||||
|
|
||||||
My Deployment setup
|
My Deployment setup
|
||||||
-------------------
|
-------------------
|
||||||
|
2
go.mod
2
go.mod
@ -2,4 +2,4 @@ module gitlab.com/balki/ytui
|
|||||||
|
|
||||||
go 1.18
|
go 1.18
|
||||||
|
|
||||||
require golang.org/x/net v0.0.0-20220812174116-3211cb980234
|
require golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c
|
||||||
|
4
go.sum
4
go.sum
@ -1,2 +1,2 @@
|
|||||||
golang.org/x/net v0.0.0-20220812174116-3211cb980234 h1:RDqmgfe7SvlMWoqC3xwQ2blLO3fcWcxMa3eBLRdRW7E=
|
golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c h1:JVAXQ10yGGVbSyoer5VILysz6YKjdNT2bsvlayjqhes=
|
||||||
golang.org/x/net v0.0.0-20220812174116-3211cb980234/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
golang.org/x/net v0.0.0-20220822230855-b0a4917ee28c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk=
|
||||||
|
3
main.go
3
main.go
@ -69,8 +69,7 @@ func main() {
|
|||||||
log.Print("Youtube UI")
|
log.Print("Youtube UI")
|
||||||
log.SetFlags(log.Flags() | log.Lshortfile)
|
log.SetFlags(log.Flags() | log.Lshortfile)
|
||||||
parse()
|
parse()
|
||||||
tmpl := template.New("page")
|
tmpl, err := template.New("page").Parse(page)
|
||||||
tmpl, err := tmpl.Parse(page)
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Panic(err)
|
log.Panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user