Use replaceYouTube from config in rss

Fixes #372
This commit is contained in:
Zed
2021-07-18 02:20:17 +02:00
parent 2422a2b8b7
commit e183a9c789
3 changed files with 8 additions and 4 deletions

View File

@@ -32,7 +32,9 @@ proc getConfig*(path: string): (Config, parseCfg.Config) =
redisHost: cfg.get("Cache", "redisHost", "localhost"),
redisPort: cfg.get("Cache", "redisPort", 6379),
redisConns: cfg.get("Cache", "redisConnections", 20),
redisMaxConns: cfg.get("Cache", "redisMaxConnections", 30)
redisMaxConns: cfg.get("Cache", "redisMaxConnections", 30),
replaceYouTube: cfg.get("Preferences", "replaceYouTube", "piped.kavin.rocks")
)
return (conf, cfg)