diff --git a/server/web/api/torrents.go b/server/web/api/torrents.go index 396403f..8b34eb2 100644 --- a/server/web/api/torrents.go +++ b/server/web/api/torrents.go @@ -92,6 +92,8 @@ func addTorrent(req torrReqJS, c *gin.Context) { if tor.Title == "" { tor.Title = torrSpec.DisplayName // prefer dn over name tor.Title = strings.ReplaceAll(tor.Title, "rutor.info", "") + tor.Title = strings.ReplaceAll(tor.Title, "_", " ") + tor.Title = strings.Trim(tor.Title, " ") if tor.Title == "" { tor.Title = tor.Name() }