remove rutor from dn

This commit is contained in:
YouROK
2021-08-16 09:51:42 +03:00
parent 8d25a5b30b
commit 91c2af4d13

View File

@@ -91,6 +91,7 @@ func addTorrent(req torrReqJS, c *gin.Context) {
if tor.Title == "" { if tor.Title == "" {
tor.Title = torrSpec.DisplayName // prefer dn over name tor.Title = torrSpec.DisplayName // prefer dn over name
tor.Title = strings.ReplaceAll(tor.Title, "rutor.info", "")
if tor.Title == "" { if tor.Title == "" {
tor.Title = tor.Name() tor.Title = tor.Name()
} }