Respect YTDLP_SITE_CONFIG_DIR
This commit is contained in:
@@ -18,7 +18,12 @@ func GetDataDir() string {
|
||||
return "data"
|
||||
}
|
||||
|
||||
// defaults to GetDataDir() / config
|
||||
func GetConfigDir() string {
|
||||
value, exists := os.LookupEnv("YTDLP_SITE_CONFIG_DIR")
|
||||
if exists {
|
||||
return value
|
||||
}
|
||||
return filepath.Join(GetDataDir(), "config")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user