From 65dc698f5b6d956ce8ae48c1af0df7e866c2a03c Mon Sep 17 00:00:00 2001 From: Rogee Date: Fri, 6 Sep 2024 08:49:35 +0800 Subject: [PATCH] fix: issues --- internal/db_channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/db_channel.go b/internal/db_channel.go index f9ef612..45f7ae5 100644 --- a/internal/db_channel.go +++ b/internal/db_channel.go @@ -59,7 +59,7 @@ func NewDBChannel(uuid int64, username, title string) *DBChannel { } func (c *DBChannel) Asset(assetID int64, ext string) string { - assetFile := fmt.Sprintf("%d/%d.%s", c.UUID, assetID, strings.Trim(ext, ".")) + assetFile := fmt.Sprintf("%d/%d.%s", c.UUID, assetID, strings.ToLower(strings.Trim(ext, "."))) assetFile = filepath.Join(config.C.Output, assetFile) // if file dir not exists then create it