Support multiple video/audio transcodes

This commit is contained in:
Carl Pearson
2024-09-10 08:21:03 -06:00
parent 456b3d3e56
commit 663a6f5e88
9 changed files with 411 additions and 101 deletions

View File

@@ -6,12 +6,12 @@ import (
"os"
)
func getDownloadDir() string {
value, exists := os.LookupEnv("YTDLP_SITE_DOWNLOAD_DIR")
func getDataDir() string {
value, exists := os.LookupEnv("YTDLP_SITE_DATA_DIR")
if exists {
return value
}
return "downloads"
return "data"
}
func getConfigDir() string {