mirror of
https://github.com/marcopiovanello/yt-dlp-web-ui.git
synced 2026-07-25 06:54:30 +00:00
Server v4 (#370)
* refactoring-1 introduced pipelines and abstracted download process.go in Downloader interface * migrated to boltdb from sqlite + session files * refactoring: config struct & pipelines * added js runtime for yt-dlp * updated dockerfile * added external js runtime, metadata scraping refactor * updated Dockerfile * fixed env propagation in docker * updated package name to v4 * updated readme and cd
This commit is contained in:
+4
-4
@@ -4,8 +4,8 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/config"
|
||||
"github.com/marcopiovanello/yt-dlp-web-ui/v3/server/internal"
|
||||
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/config"
|
||||
"github.com/marcopiovanello/yt-dlp-web-ui/v4/server/internal"
|
||||
"golang.org/x/sys/unix"
|
||||
)
|
||||
|
||||
@@ -14,7 +14,7 @@ import (
|
||||
// FreeSpace gets the available Bytes writable to download directory
|
||||
func FreeSpace() (uint64, error) {
|
||||
var stat unix.Statfs_t
|
||||
unix.Statfs(config.Instance().DownloadPath, &stat)
|
||||
unix.Statfs(config.Instance().Paths.DownloadPath, &stat)
|
||||
return (stat.Bavail * uint64(stat.Bsize)), nil
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ func DirectoryTree() (*[]string, error) {
|
||||
}
|
||||
|
||||
var (
|
||||
rootPath = config.Instance().DownloadPath
|
||||
rootPath = config.Instance().Paths.DownloadPath
|
||||
|
||||
stack = internal.NewStack[Node]()
|
||||
flattened = make([]string, 0)
|
||||
|
||||
Reference in New Issue
Block a user