This commit is contained in:
royalcat 2024-06-03 00:20:43 +03:00
parent bd75492b02
commit 06153d61c9
8 changed files with 108 additions and 135 deletions
cmd/tstor

View file

@ -96,7 +96,11 @@ func run(configPath string) error {
return fmt.Errorf("error creating service: %w", err)
}
ytdlpsrv := ytdlp.NewService(conf.SourceDir)
err = os.MkdirAll("./ytdlp", 0744)
if err != nil {
return err
}
ytdlpsrv := ytdlp.NewService("./ytdlp")
sfs := sources.NewHostedFS(
vfs.NewCtxBillyFs("/", ctxbilly.WrapFileSystem(sourceFs)),