From 2fad5ea69bc216406f958e37895d1da10fb5237b Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Tue, 22 Apr 2025 15:55:25 +0800 Subject: [PATCH] feat: no add transmission config --- db/db.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/db/db.go b/db/db.go index 27f5450..17213fd 100644 --- a/db/db.go +++ b/db/db.go @@ -68,14 +68,14 @@ func (c *client) init() { log.Infof("set default log level") c.SetSetting(SettingLogLevel, "info") } - if tr := c.GetAllDonloadClients(); len(tr) == 0 { - log.Warnf("no download client, set default download client") - c.SaveDownloader(&ent.DownloadClients{ - Name: "transmission", - Implementation: downloadclients.ImplementationTransmission, - URL: "http://transmission:9091", - }) - } + // if tr := c.GetAllDonloadClients(); len(tr) == 0 { + // log.Warnf("no download client, set default download client") + // c.SaveDownloader(&ent.DownloadClients{ + // Name: "transmission", + // Implementation: downloadclients.ImplementationTransmission, + // URL: "http://transmission:9091", + // }) + // } } func (c *client) generateJwtSerectIfNotExist() {